Skip to content

Commit

Permalink
Add TRAVIS YAML
Browse files Browse the repository at this point in the history
  • Loading branch information
IvanLuLyf committed Apr 16, 2019
1 parent 4fec34d commit b1655a8
Showing 1 changed file with 38 additions and 0 deletions.
38 changes: 38 additions & 0 deletions .travis.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
# http://docs.travis-ci.com/user/languages/android/
language: android
jdk: oraclejdk8
sudo: false

before_cache:
- rm -f $HOME/.gradle/caches/modules-2/modules-2.lock
cache:
directories:
- $HOME/.gradle/caches/
- $HOME/.gradle/wrapper/

android:
components:
- platform-tools
- tools
- build-tools-28.0.0
- build-tools-28.0.3
- android-28
- extra-android-m2repository
- extra-google-m2repository
script:
- echo "Travis branch is $TRAVIS_BRANCH"
- echo "Travis branch is in pull request $TRAVIS_PULL+REQUEST"
- ./gradlew assembleRelease

licenses:
- 'android-sdk-preview-license-52d11cd2'
- 'android-sdk-license-.+'
- 'google-gdk-license-.+'

before_install:
- yes | sdkmanager "platforms;android-28"
- mkdir -p "$ANDROID_HOME/licenses"
- echo -e "\n8933bad161af4178b1185d1a37fbf41ea5269c55" > "$ANDROID_HOME/licenses/android-sdk-license"
- echo -e "\n84831b9409646a918e30573bab4c9c91346d8abd" > "$ANDROID_HOME/licenses/android-sdk-preview-license"
- chmod +x gradlew
- ./gradlew dependencies || true

0 comments on commit b1655a8

Please sign in to comment.