forked from apptentive/apptentive-android
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
66 lines (64 loc) · 2.74 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
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
language: android
dist: precise
env:
global:
- SNAPSHOT_REPOSITORY_USERNAME=travis
- SNAPSHOT_REPOSITORY_URL=http://54.183.158.246:8081/artifactory/apptentive-snapshots
- secure: pc2twMw60say0ASdXiJiRAD6tx9Qy82DIMw83qPijB2wyVHLpLbjptqBFyTYy4+JYthZ8xcB5Yretiv//AQS4wdDPsJNwOKUGXamm8IBx+1wnhG/R/ROz67Ibj4XWHIX24GaKN/MD8tCN9VPdeNEL1jysSEVxqqsvOGBsxitAyI=
jdk:
- oraclejdk8
before_cache:
- rm -f $HOME/.gradle/caches/modules-2/modules-2.lock
- rm -fr $HOME/.gradle/caches/*/plugin-resolution/
cache:
directories:
- $HOME/.gradle/caches/
- $HOME/.gradle/wrapper/
- $HOME/.android/build-cache
android:
components:
- tools # to get the new `repository-11.xml`
- tools # see https://github.com/travis-ci/travis-ci/issues/6040#issuecomment-219367943)
- platform-tools
- build-tools-29.0.2
# - android-25
- android-29
- extra-android-m2repository
- extra-google-m2repository
- extra-google-google_play_services
- addon-google_apis-google-29
# - sys-img-armeabi-v7a-google_apis-25
# - sys-img-armeabi-v7a-android-25
licenses:
- 'android-sdk-preview-license-52d11cd2'
- 'android-sdk-license-.+'
- 'google-gdk-license-.+'
before_install:
- yes | sdkmanager "platforms;android-29"
install: true
before_script:
# - echo "y" | android update sdk -a --no-ui --filter android-25
# - echo "y" | android update sdk -a --no-ui --filter sys-img-armeabi-v7a-android-25
# - android list targets | grep -E '^id:' | awk -F '"' '{$1=""; print $2}' # list all targets
# - echo no | android create avd --force -n test -t android-25 --abi google_apis/armeabi-v7a
# - emulator -avd test -no-window &
# - android-wait-for-emulator
# - adb shell input keyevent 82 &
script:
- ./gradlew :apptentive:test -i
# - ./gradlew :test-app:connectedAndroidTest
# - if [ -d "apptentive-internal-app" ]; then ./gradlew :apptentive-internal-app:installAutomatedDebug; fi
# - if [ -d "apptentive-internal-app" ]; then ./gradlew :apptentive-internal-app:installAutomatedDebugAndroidTest; fi
# - if [ -d "apptentive-internal-app" ]; then ./gradlew :apptentive-internal-app:connectedAutomatedDebugAndroidTest -i; fi
after_script:
- >
if [ "$TRAVIS_BRANCH" = "develop" ]; then
./gradlew :apptentive:uploadArchives;
if [ -d "apptentive-internal-app" ]; then ./gradlew :apptentive-internal-app:assembleQaDebug; fi
if [ -d "apptentive-internal-app" ]; then ./gradlew :apptentive-internal-app:uploadQaDebugToHockeyApp; fi;
fi
after_failure:
#- echo " LOGCAT "; echo "========"; cat logcat.log; pkill -KILL -f adb
notifications:
slack:
secure: HejMl0EUociwGu+5djx95snbS+m/Yw8DseQKCSqeyWvMQLrAy8bi9oa89mZvXnvjqSVY3kKRZgJncEkQdIe9c7xwgNA9QYLkc7UVbXqga291HMoNnWaIMewD2ervbzM4aBQAHnkDr+GsXgb7+1YdOktIn8dA7jdIuB90ar4So9U=