forked from w3-engineers/telemesh
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
44 lines (40 loc) · 1.5 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
language: android
sudo: required
jdk: oraclejdk8
android:
components:
- tools
- platform-tools
- tools
- build-tools-28.0.3
- android-28
- 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-28"
# Emulator Management: Create, Start and Wait
before_script:
- echo no | android create avd --force -n test -t android-22 --abi armeabi-v7a
- emulator -avd test -no-skin -no-audio -no-window &
- android-wait-for-emulator
- adb shell input keyevent 82 &
script:
- ./gradlew clean build lintDebug connectedCheck coveralls -PdisablePreDex --stacktrace
# - ./gradlew :app:lintDebug
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