From 89d31e94edefad34240d7686cadb55d28a7299f0 Mon Sep 17 00:00:00 2001 From: Neno0o Date: Fri, 26 Apr 2019 17:37:54 +0200 Subject: [PATCH] Integrate Travis CI --- .travis.yml | 52 ++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 52 insertions(+) create mode 100644 .travis.yml diff --git a/.travis.yml b/.travis.yml new file mode 100644 index 0000000..deb33e4 --- /dev/null +++ b/.travis.yml @@ -0,0 +1,52 @@ +language: android + +sudo: false + +jdk: + - oraclejdk8 + +env: + global: + - ANDROID_API=28 + - ANDROID_BUILD_TOOLS=28.0.3 + - EMULATOR_API_LEVEL=24 + +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 + +android: + components: + - android-$ANDROID_API + - android-$EMULATOR_API_LEVEL + - build-tools-$ANDROID_BUILD_TOOLS + - tools + - platform-tools + - extra-google-m2repository + - extra-google-google_play_services + - extra-android-m2repository + - sys-img-armeabi-v7a-android-$EMULATOR_API_LEVEL + +before_script: + - echo no | android create avd --force -n test --target android-$EMULATOR_API_LEVEL --abi armeabi-v7a + - emulator -avd test -noskin -no-boot-anim -no-window & + - android-wait-for-emulator + - adb shell input keyevent 82 + +script: + - ./gradlew check connectedCheck --stacktrace + - ./gradlew ktlint + +deploy: + provider: script + script: ./gradlew imageclassification:clean :imageclassification:assembleRelease :imageclassification:bintrayUpload + skip_cleanup: true + dry-run: false + on: + branch: release