-
Notifications
You must be signed in to change notification settings - Fork 7
/
test
executable file
·29 lines (27 loc) · 1.52 KB
/
test
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
#!/usr/bin/env bash
adb devices | tail -n +2 | cut -sf 1 | xargs -I {} adb -s {} shell input keyevent 224
adb devices | tail -n +2 | cut -sf 1 | xargs -I {} adb -s {} shell settings put global window_animation_scale 0
adb devices | tail -n +2 | cut -sf 1 | xargs -I {} adb -s {} shell settings put global transition_animation_scale 0
adb devices | tail -n +2 | cut -sf 1 | xargs -I {} adb -s {} shell settings put global animator_duration_scale 0
./ktlint
./gradlew test \
:ext-acorn-android-testing:lint \
:ext-acorn-android-timber:lint \
:ext-acorn-android-lifecycle:lint \
:samples:hello-bottombar:lintRelease \
:samples:hello-concurrentpairnavigator:lintRelease \
:samples:hello-navigation:lintRelease \
:samples:hello-overridingback:lintRelease \
:samples:hello-sharedata:lintRelease \
:samples:hello-startactivity:lintRelease \
:samples:hello-staterestoration:lintRelease \
:samples:hello-transitionanimation:lintRelease \
:samples:hello-viewfactory:lintRelease \
:samples:hello-world:lintRelease \
:samples:notes-app:android:lintRelease \
packageDebugAndroidTest \
&& ./gradlew cCheck --max-workers=1 \
&& ./gradlew publishToMavenLocal \
adb devices | tail -n +2 | cut -sf 1 | xargs -I {} adb -s {} shell settings put global window_animation_scale 1
adb devices | tail -n +2 | cut -sf 1 | xargs -I {} adb -s {} shell settings put global transition_animation_scale 1
adb devices | tail -n +2 | cut -sf 1 | xargs -I {} adb -s {} shell settings put global animator_duration_scale 1