-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
81 lines (81 loc) · 2.79 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
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
sudo: true
language: android
jdk:
- oraclejdk8
before_cache:
- rm -rf $HOME/.gradle/caches/modules-2/modules-2.lock
- rm -rf $HOME/.gradle/caches/*/plugin-resolution/
cache:
directories:
- "$HOME/.m2"
- "$HOME/.gradle"
- "$HOME/.gradle/caches/"
- "$HOME/.gradle/wrapper/"
env:
global:
- ANDROID_API=27
- EMULATOR_API=21
- ANDROID_BUILD_TOOLS=27.0.3
- ADB_INSTALL_TIMEOUT=5
- secure: hMq71LKoxcqzk1BSWyqpcVP3JJ89fggyUFQj2Bq3xcfPnJSP43Ksmznm0Phc4ljEaXV83EifW+c9T+yNAC5Es2KeCLX+4GNAFlaaEUTUV/RcZVPFammD7nMACFxjXK05QxQz+nAeCvNr54KI4zxr4Hyv2quhK2mh9J4RHHrYy8Wy/iSPIPkcZiqTByQ6OtaOukJ7s2a7FQqoxAeQCVNVkqvQ1iidAXWeeIG+ib/gJpZ5Cv7GUCv8AzAyLUR5c0a4BY9jONUMNstlb+xi8OUjk6/SmJLqRYtFnmEBTCiQkn5+g+ZJm2w4qKsappAwj3ItUe2VuB71sWfHhl0j2DTXaGHmluv/Wvrj0+h93XST2yLohQOT8hNbm0bAS11N3HKvmGpzDyO6AkOZqm2NUv9iNAtXfPO+cT1AxeBntTXTUt6cOn1alm6i/m+uCUnCznj4UG2gE/UQ4bT3IPYb9jKJxB5wtM66K04V8H4Na1cnGj29+IKQqdZivZA5SS3LdS0jyxHE1aaSUQo+F8neOh1JNeP2HmSuZ5VIucvMiZ8RSepg8VS7C6nseXzUnzu7ZFF1n7oWFr/vcqw0EwMwbyxR3TUqh5YbBk+n+YkQBGIVqJ4Uw+TaG37StvdRLH6vn0o6RTiLXKAYBnBtEPlEbORuTlalhjdOYev0jeW3Zn/nQSM=
android:
components:
- tools
- platform-tools
- build-tools-$ANDROID_BUILD_TOOLS
- android-$ANDROID_API
- android-$EMULATOR_API
- extra-google-google_play_services
- extra-android-m2repository
- extra-google-m2repository
- extra
- addon-google_apis-google-19
- sys-img-armeabi-v7a-addon-google_apis-google-$ANDROID_API
- sys-img-armeabi-v7a-addon-google_apis-google-$EMULATOR_API
- google_apis/armeabi-v7a
- google_apis/armeabi-v7a-android-$ANDROID_API
- sys-img-armeabi-v7a-android-$ANDROID_API_LEVEL
- sys-img-armeabi-v7a-addon-google_apis-google-$ANDROID_API
- google_apis/armeabi-v7a-android-$EMULATOR_API
- sys-img-armeabi-v7a-android-$EMULATOR_API
- sys-img-armeabi-v7a-addon-google_apis-google-$EMULATOR_API
licenses:
- android-sdk-preview-license-.+
- android-sdk-license-.+
- google-gdk-license-.+
before_install:
- touch ~/.android/repositories.cfg
- yes | sdkmanager "platforms;android-27"
- chmod +x gradlew
- "./gradlew dependencies || true"
- export JAVA_HOME=$JAVA8_HOME
before_script:
- echo no | android create avd --force -n test -t android-21 --abi armeabi-v7a -c
32M
- emulator -avd test -no-skin -no-audio -no-window &
- android-wait-for-emulator
- adb shell input keyevent 82 &
script:
- "./gradlew clean build connectedCheck -PdisablePreDex --stacktrace"
after_success:
- sh script/set_tags.sh
branches:
only:
- master
notifications:
email:
on_success: always
on_failure: never
recipients:
deploy:
provider: releases
api_key:
secure: $GITHUB_TOKEN
file: app/build/outputs/apk/debug/Emergency-Airways.apk
file_glob: 'true'
skip_cleanup: true
on:
branch: master
repo: HUFGhani/Emergency-Airways