Skip to content

Commit

Permalink
Integrate Travis CI
Browse files Browse the repository at this point in the history
  • Loading branch information
Neno0o committed Apr 26, 2019
1 parent c307899 commit 89d31e9
Showing 1 changed file with 52 additions and 0 deletions.
52 changes: 52 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit 89d31e9

Please sign in to comment.