Add dark screenshots
Signed-off-by: tobiasKaminsky <tobias@kaminsky.me>
After Width: | Height: | Size: 24 KiB |
After Width: | Height: | Size: 22 KiB |
After Width: | Height: | Size: 11 KiB |
After Width: | Height: | Size: 24 KiB |
After Width: | Height: | Size: 28 KiB |
After Width: | Height: | Size: 22 KiB |
After Width: | Height: | Size: 32 KiB |
After Width: | Height: | Size: 23 KiB |
After Width: | Height: | Size: 15 KiB |
After Width: | Height: | Size: 15 KiB |
After Width: | Height: | Size: 15 KiB |
After Width: | Height: | Size: 15 KiB |
After Width: | Height: | Size: 13 KiB |
After Width: | Height: | Size: 7.8 KiB |
After Width: | Height: | Size: 12 KiB |
After Width: | Height: | Size: 9.5 KiB |
After Width: | Height: | Size: 12 KiB |
After Width: | Height: | Size: 11 KiB |
Before Width: | Height: | Size: 12 KiB After Width: | Height: | Size: 12 KiB |
After Width: | Height: | Size: 30 KiB |
After Width: | Height: | Size: 17 KiB |
After Width: | Height: | Size: 1.9 KiB |
After Width: | Height: | Size: 4.7 KiB |
After Width: | Height: | Size: 4.4 KiB |
After Width: | Height: | Size: 4.7 KiB |
After Width: | Height: | Size: 4.1 KiB |
After Width: | Height: | Size: 4.7 KiB |
After Width: | Height: | Size: 4.8 KiB |
|
@ -4,7 +4,7 @@ if [ $# -lt 2 ]; then
|
|||
echo "1: record: true/false
|
||||
2: class name
|
||||
3: method name
|
||||
4: darkMode / \"all\" to run all screenshot combinations
|
||||
4: darkMode: dark/light / \"all\" to run all screenshot combinations
|
||||
5: color"
|
||||
|
||||
exit
|
||||
|
|
|
@ -6,7 +6,7 @@ if [ -z $3 ] ; then
|
|||
fi
|
||||
|
||||
export BRANCH=$(scripts/analysis/getBranchBase.sh $1 $2 $3 | sed s'/"//'g)
|
||||
if [ $(git diff --name-only origin/$BRANCH | grep -cE "^src|build.gradle") -eq 0 ] ; then
|
||||
if [ $(git diff --name-only origin/$BRANCH | grep -cE "^src|^screenshots|build.gradle") -eq 0 ] ; then
|
||||
echo "No source files changed"
|
||||
exit 1
|
||||
else
|
||||
|
|
|
@ -30,11 +30,11 @@ do
|
|||
exit
|
||||
fi
|
||||
else
|
||||
./gradlew gplayDebugExecuteScreenshotTests \
|
||||
./gradlew --console plain gplayDebugExecuteScreenshotTests \
|
||||
$record \
|
||||
-Pandroid.testInstrumentationRunnerArguments.annotation=com.owncloud.android.utils.ScreenshotTest \
|
||||
-Pandroid.testInstrumentationRunnerArguments.COLOR="$color" \
|
||||
-Pandroid.testInstrumentationRunnerArguments.DARKMODE="$darkMode" \
|
||||
-Pandroid.testInstrumentationRunnerArguments.DARKMODE="$darkMode" </dev/null > /dev/null \
|
||||
&& scripts/deleteOutdatedComments.sh "$1-$darkMode-$color" "Screenshot" "$DRONE_PULL_REQUEST" \
|
||||
"$GIT_USERNAME" "$GIT_TOKEN" \
|
||||
|| scripts/uploadReport.sh "$LOG_USERNAME" "$LOG_PASSWORD" "$DRONE_BUILD_NUMBER" \
|
||||
|
|
|
@ -1 +1,2 @@
|
|||
light blue
|
||||
dark blue
|
||||
|
|
|
@ -57,6 +57,7 @@
|
|||
android:scrollbarStyle="outsideOverlay"
|
||||
android:scrollbars="vertical"
|
||||
android:visibility="visible"
|
||||
android:background="@color/bg_default"
|
||||
tools:listitem="@layout/notification_list_item" />
|
||||
|
||||
</androidx.swiperefreshlayout.widget.SwipeRefreshLayout>
|
||||
|
@ -76,7 +77,7 @@
|
|||
|
||||
<include
|
||||
layout="@layout/drawer"
|
||||
android:layout_width="240dp"
|
||||
android:layout_width="@dimen/drawer_width"
|
||||
android:layout_height="match_parent"
|
||||
android:layout_gravity="start"/>
|
||||
|
||||
|
|