forked from Sage-Bionetworks/mPower-2-Android
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
42 lines (38 loc) · 927 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
37
38
39
40
41
language: android
# Required to run retrolambda
jdk:
- oraclejdk8
android:
components:
- tools
- platform-tools
- tools
- build-tools-27.0.3
- android-27
# RS components
- extra-android-m2repository
- extra-google-m2repository
before_cache:
- rm -f $HOME/.gradle/caches/modules-2/modules-2.lock
- rm -fr $HOME/.gradle/caches/*/plugin-resolution/
cache:
bundler: true
directories:
- $HOME/.gradle/caches/
- $HOME/.gradle/wrapper/
- $HOME/.android/build-cache
branches:
only:
- master
- "/^stable-.*$/"
before_install:
- echo -e "machine github.com\n login $CI_USER_TOKEN" >> ~/.netrc
- git config --global user.name "Travis CI"
- git config --global user.email "[email protected]"
- yes | sdkmanager "platforms;android-27"
install:
- gem install bundler
- bundle install
script:
- export PATH=$PATH:$ANDROID_HOME/build-tools/27.0.3
- ./travis/build.sh