From 0f0dbf3bf4f07f0fe47b9be7d6d5004a7a02cb75 Mon Sep 17 00:00:00 2001 From: shefengl Date: Wed, 27 Mar 2019 19:04:33 +0800 Subject: [PATCH] travis test --- .travis.yml | 52 ++++++++-------------------------------------------- 1 file changed, 8 insertions(+), 44 deletions(-) diff --git a/.travis.yml b/.travis.yml index c8875da8..ddd652f5 100644 --- a/.travis.yml +++ b/.travis.yml @@ -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 \ No newline at end of file