forked from airbnb/lottie-android
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
42 lines (41 loc) · 1.04 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
# https://cloud.google.com/solutions/continuous-delivery-with-travis-ci
language: android
group: travis_lts
cache:
directories:
- "$HOME/.m2"
- "$HOME/.gradle"
- "$HOME/gcloud-sdk/"
env:
- PATH=${HOME}/gcloud-sdk/bin:$PATH CLOUDSDK_CORE_DISABLE_PROMPTS=1
before_install:
- yes | sdkmanager "platforms;android-27"
- export TRAVIS_GIT_BRANCH=$(if [ "$TRAVIS_PULL_REQUEST" == "false" ]; then echo $TRAVIS_BRANCH; else echo $TRAVIS_PULL_REQUEST_BRANCH; fi)
- export GIT_SHA=$(git rev-parse HEAD)
- export GIT_MERGE_BASE=$(git merge-base master)
- echo GIT_SHA $GIT_SHA
- echo GIT_MERGE_BASE $GIT_MERGE_BASE
install:
- . $HOME/.nvm/nvm.sh
- nvm install stable
- nvm use stable
- npm install
android:
components:
- tools
- platform-tools
- build-tools-27.0.3
- android-27
- extra-android-m2repository
jdk:
- oraclejdk8
branches:
except:
- gh-pages
notifications:
email: false
script:
- ./gradlew check
- ./gradlew :LottieSample:assembleAndroidTest :LottieSample:assembleDebug
- ./gcloud_run.sh
sudo: false