-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy path.travis.yml
36 lines (29 loc) · 955 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
33
34
35
36
language: android
jdk: oraclejdk8
before_install:
- chmod +x gradlew # to prevent "Permission Denied" error
- mkdir -p $HOME/.android
- cp ./travis/debug.keystore $HOME/.android/debug.keystore
install:
- echo yes | sdkmanager "tools" &>/dev/null
- echo yes | sdkmanager "platform-tools" &>/dev/null
- echo yes | sdkmanager "build-tools;28.0.3" &>/dev/null
- echo yes | sdkmanager "platforms;android-28" &>/dev/null
script:
# install jq (needed for json parsing in build script)
- sudo apt-get install -y jq
- bash ./travis/build.sh
- bash ./travis/distribute_result.sh
#branches:
# except:
# - gh-pages
#sudo: false
# Remove old local cache files before and cache again after the build
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