-
Notifications
You must be signed in to change notification settings - Fork 43
/
Copy path.travis.yml
61 lines (51 loc) · 2.02 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
language: android
dist: trusty
jdk: openjdk11
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
env:
global:
- ANDROID_BUILD_TOOL_VERSION=32.0.0
- ANDROID_COMPILE_SDK_VERSION=32
- ANDROID_TARGET_SDK_VERSION=32
notifications:
email: false
webhooks: "https://hooks.zapier.com/hooks/catch/491059/opzg6m/"
android:
components:
- platform-tools
# The BuildTools version used by your project
- extra-android-support
- extra-google-m2repository
- extra-android-m2repository
licenses:
- 'android-sdk-preview-license-52d11cd2'
- 'android-sdk-license-c81a61d9'
- 'android-sdk-license-e6a904e8'
- 'google-gdk-license-9529f459'
- 'android-sdk-license-5be876d5'
before_install:
- touch $HOME/.android/repositories.cfg
- JAVA_HOME_LAST=$JAVA_HOME;JAVA_HOME=/usr/lib/jvm/java-8-oracle/jre;yes | sdkmanager "platforms;android-$ANDROID_COMPILE_SDK_VERSION" "build-tools;$ANDROID_BUILD_TOOL_VERSION";JAVA_HOME=$JAVA_HOME_LAST
# fix gradle license errors
- mkdir -p "/usr/local/android-sdk/licenses"
- echo -e "\n8933bad161af4178b1185d1a37fbf41ea5269c55\nd56f5187479451eabf01fb78af6dfcb131a6481e" > "/usr/local/android-sdk/licenses/android-sdk-license"
- echo -e "\n84831b9409646a918e30573bab4c9c91346d8abd\nd77a45cfde8d8db5135a9d01fce4bdfa23a033dd" > "/usr/local/android-sdk/licenses/android-sdk-preview-license"
before_script:
# Setup build envrionment
- openssl aes-256-cbc -K $encrypted_7fcdb5fbc52e_key -iv $encrypted_7fcdb5fbc52e_iv -in external/localsettings.tar.gz.enc -out localsettings.tar.gz -d
- tar xzf localsettings.tar.gz && mv id_edca ~/.ssh/ && mv id_config ~/.ssh/config
script:
- ./gradlew lintRelease assembleDebug assembleRelease bundleDebug bundleRelease
after_success:
- export BUILD_RESULT="success"
after_failure:
- export BUILD_RESULT="ERROR"
after_script:
- ./external/report.sh