-
Notifications
You must be signed in to change notification settings - Fork 6
/
.travis.yml
32 lines (26 loc) · 876 Bytes
/
.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
language: android
jdk: oraclejdk8
sudo: false
branches:
only:
- master
android:
components:
- build-tools-24.0.2
- android-22
before_install:
- yes | sdkmanager "platforms;android-27"
install:
- bundle install
script:
- ./gradlew testDebugUnitTest ktlintDebugCheck createTestReports
- bundle exec danger
- bash <(curl -s https://codecov.io/bash)
after_failure:
- 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