-
Notifications
You must be signed in to change notification settings - Fork 16
/
.travis.yml
51 lines (47 loc) · 1.92 KB
/
.travis.yml
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
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
language: android
sudo: required
jdk: oraclejdk8
android:
components:
- tools
- platform-tools
- tools
- build-tools-30.0.2
- android-30
- android-22
- extra-google-google_play_services
- extra-google-m2repository #Google Play Services
- extra-android-m2repository #Design Support Library
- extra-android-support
- addon-google_apis-google-25
- sys-img-armeabi-v7a-android-22
licenses:
- 'android-sdk-license-.+'
before_install:
- "chmod +x gradlew"
- yes | sdkmanager "platforms;android-30"
# - wget $MESHLIB_WGET_URL -O /tmp/meshlib.zip
# - unzip /tmp/meshlib.zip -d ./
# Emulator Management: Create, Start and Wait
before_script:
- echo no | android create avd --force -n test -t android-22 --abi armeabi-v7a -c 1000M
- emulator -avd test -no-skin -no-audio -no-window &
- android-wait-for-emulator
- adb shell settings put global window_animation_scale 0 &
- adb shell settings put global transition_animation_scale 0 &
- adb shell settings put global animator_duration_scale 0 &
- adb shell input keyevent 82 &
script:
# - ./gradlew clean build lintDebug connectedCheck coveralls -PdisablePreDex --stacktrace
# - ./gradlew clean build lintDebug connectedCheck coveralls -PdisablePreDex --stacktrace
# - ./gradlew :app:lintDebug
- ./gradlew assembleDebug coveralls --stacktrace
after_failure:
# Customize this line, 'android' is the specific app module name of this project. Shows log.
- export MY_MOD="app"
- export MY_LOG_DIR="$(pwd)/${MY_MOD}/build/outputs/reports/androidTests/connected/"
- pwd && cd "${MY_LOG_DIR:-.}" && pwd && ls -al
- sudo apt-get install -qq lynx && lynx --dump index.html > myIndex.log
- lynx --dump com.android.builder.testing.ConnectedDevice.html > myConnectedDevice.log
- lynx --dump com.android.builder.testing.html > myTesting.log
- for file in *.log; do echo "$file"; echo "====================="; cat "$file"; done || true