Skip to content

Commit

Permalink
travis test
Browse files Browse the repository at this point in the history
  • Loading branch information
shefengl committed Jun 17, 2019
1 parent 9316cdf commit fbe3e29
Showing 1 changed file with 8 additions and 44 deletions.
52 changes: 8 additions & 44 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,48 +1,12 @@
language: android
jdk: oraclejdk8
sudo: false
android:
components:
# Uncomment the lines below if you want to
# use the latest revision of Android SDK Tools
- tools
- platform-tools

# The BuildTools version used by your project
- build-tools-28.0.2

# The SDK version used to compile your project
- android-27

# Additional components
- extra-google-google_play_services
- extra-google-m2repository
- extra-android-m2repository

# Specify at least one system image,
# if you need to run emulator(s) during your tests
- sys-img-x86-android-26
- sys-img-armeabi-v7a-android-17

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"

before_script:
- chmod +x gradlew

script:
- ./gradlew

- tools # to get the new `repository-11.xml`
- tools # see https://github.com/travis-ci/travis-ci/issues/6040#issuecomment-219367943)
- platform-tools
- build-tools-27.0.3
- android-27
before_install:
- gem install fir-cli
after_deploy:
- fir p app/build/outputs/apk/googleplay/debug/app-release.apk -T $FIR_API_TOKEN -c "`git cat-file tag $TRAVIS_TAG`"


- yes | sdkmanager "platforms;android-27"
script:
- ./gradlew build connectedCheck

0 comments on commit fbe3e29

Please sign in to comment.