-
Notifications
You must be signed in to change notification settings - Fork 18
/
.travis.yml
84 lines (71 loc) · 3.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
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
# Possible Issues:
#
# .gradlw permission denied:
# git update-index --chmod=+x gradlew //http://stackoverflow.com/questions/33820638/travis-yml-gradlew-permission-denied
language: android
dist: trusty
android:
components:
- tools # to get the new `repository-11.xml`
- platform-tools
- tools # to install Android SDK tools 25.1.x (x = 6 right now)
- build-tools-29.0.3
- android-29
- extra-google-m2repository
- extra-android-m2repository
env:
global:
# install timeout in minutes (2 minutes by default)
- ADB_INSTALL_TIMEOUT=8
before_install:
- openssl aes-256-cbc -K $encrypted_376031a79878_key -iv $encrypted_376031a79878_iv -in credentials.tar.enc -out credentials.tar -d
- tar xvf credentials.tar
- mkdir "$ANDROID_HOME/licenses" || true
- echo -e "\n8933bad161af4178b1185d1a37fbf41ea5269c55\nd56f5187479451eabf01fb78af6dfcb131a6481e" > "$ANDROID_HOME/licenses/android-sdk-license"
- echo -e "\n504667f4c0de7af1a06de9f4b1727b84351f2910" > "$ANDROID_HOME/licenses/android-sdk-preview-license"
# 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-audio -no-window &
# - android-wait-for-emulator
# - adb shell input keyevent 82 &
script:
- ./gradlew clean assemble --stacktrace
- ./gradlew checkstyle lint --stacktrace
- ./gradlew testReleaseUnitTest --info
# - ./gradlew connectedDebugAndroidTest
after_success:
- ./gradlew jacocoTestReleaseUnitTestReport coveralls --info
deploy:
- provider: script
script: ./gradlew install bintrayUpload --info
skip_cleanup: true
on:
branch: master
tags: true
- provider: releases
api_key:
secure: "pnYV4mnpvtOHWx8arKgY0SQY7C6VDP4p5S6tin9WQujmcIO6fRldpjdRWN+qaxrK3CyVr26EQlUhwyyPDpWc+gTW/9QmmQG3o8TKBgMeEBzsJUFnMjM9c0kWeEFup14HeTakoq6waegvKuCMbP/O76BA23K+lENOerF2CK0UAJHwzYWNVt0CH8SE5nghoSbEWU9fI2FSeAMHiKYDEAbDEXcgSuVIdrgH7BPtPE55NoINAAkDrwK9V3lNDY6rPM0YAOcQ373vOWeBwvHjIaV9rdVzjRQEB6YAog0whu9zNRGfdI9an9sm/asEy4y8Zw4xtFnd7xmAeIQGrvBXK67KTlsLAhMkaqiS2YL7aDRKlMqfRGgnAY666sgZ+arLtMfJVhqwtIf0Xy0hr6pa26Nqju3/xf6KdHCMgDEyKiW3M0KnX2FSfviAj9bi119GPVDMIyMABYeFjTaUih9BkLxjCRldWLusuiR8lSb6ZPFzjr6We6Z4Gr/nEvulHrYMp0XDehN5xdlqoB1cE7shxgNg2M3WptcJNJv5odKAug0zT0TzHCIOIVeIUSZvqfyYodrHE77jR3/Sqw/2U3hs8gKV5Dbnv5iXzrc7wYEpufn2lWMRrclGw0m8xjIiDSKzL4s34iKO2Olj3rFt8gvFGfYCEIEufyAuuN4G3VdNFuWH6Fg="
file_glob: true
file:
- 'app/build/outputs/apk/releaseNoop/app-releaseNoop*.apk'
- 'app/build/outputs/apk/release/app-release*.apk'
- 'hood-core/build/outputs/aar/hood-core-noop*.aar'
- 'hood-core/build/outputs/aar/hood-core-release*.aar'
- 'hood-extended/build/outputs/aar/hood-extended-release*.aar'
skip_cleanup: true
on:
branch: master
tags: true
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
notifications:
slack:
secure: "oynQEnZp+UTqaM9N3ltfhS0qKSiEpxqSmGRnFFW/arybWx/9zj8jeAWpRY2fQA5aBl/gocmjJmOyFd8ZG4QPTHnDzADI37rdFIwu9wFdpFpPjnMl4TBm6vSj5H990kMevvYVec+0FakoIUhEMgnB9eyNkq5JO3UU0a4eq30jViEO7z17doYkhkZu7KKBBhFOra4jQsn29enYjelbjK9PPikM2TfrgC2G7f6Vdq2+OuKPJv5NgcHye63jd/LIAyBXY5FVdADPgbA3FI7+XApLS3/U4aEIS7sfOhi34B1bHL35BACOX4Kmz+XQeeAGX9HyNMLbzV3UxtidmblJ/GMnzC2nYPi2A28FmeFBxe2VOD9RohTC7jjyUrT25NsFZRS5rwoWqOsCrnI5NNaNe0Zkt17jaSwQTcH+JazIcGhzYLJedhKwLY7fsi+DtnmKA7Qbx+hZNisSE+DkcPV/yG7NIVrn/Uy8iD93TrZZUBwYqhM6SVdgtUaRvz49vjiL5hki0we6OjPrBv1uxZGyOO4NkUWo1uNJgCaiuGpFnMy0lMNqNAMwMgVSPVdqPN0G4MHwGPByQ3sxtkfTvm5dPdipC93zI/PHbTMyd8JzzNKAMmdH9+vZTKocN6K0EtTGhdBofGJdAWo3TCaKgUJRn6jTYqGr68uPpoiGto+3Mr1kyhk="
email: false