Skip to content

Commit

Permalink
Update travis CI configurations
Browse files Browse the repository at this point in the history
  • Loading branch information
hendrawd committed Jan 5, 2018
1 parent cdd85b6 commit 72e5bac
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 17 deletions.
33 changes: 17 additions & 16 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,15 @@
language: android

sudo: false
dist: precise

env:
global:
- ANDROID_API_LEVEL=26
- ANDROID_EMULATOR_API_LEVEL=21
- ANDROID_BUILD_TOOLS_VERSION=26.0.2
- ANDROID_ABI=armeabi-v7a
# install timeout in minutes (2 minutes by default)
- ADB_INSTALL_TIMEOUT=8

android:
components:
Expand All @@ -11,23 +20,19 @@ android:
# Additional components
- extra-google-google_play_services
- extra-google-m2repository
# Support library
- extra-android-support
- extra-android-m2repository

# The BuildTools version used by this project
- build-tools-25.0.2
- build-tools-$ANDROID_BUILD_TOOLS_VERSION

# The SDK version used to compile your project
- android-16
- android-21
- android-22
- android-25
- android-$ANDROID_API_LEVEL

# Specify at least one system image,
# if you need to run emulator(s) during your tests
- sys-img-armeabi-v7a-android-16
- sys-img-armeabi-v7a-android-21
- sys-img-armeabi-v7a-android-22
- sys-img-armeabi-v7a-android-25
- sys-img-armeabi-v7a-$ANDROID_EMULATOR_API_LEVEL

jdk:
- oraclejdk8
Expand All @@ -36,6 +41,7 @@ os:
- linux

before_install:
- chmod +x ./gradlew
- mkdir "$ANDROID_HOME/licenses" || true
- echo -e "\n8933bad161af4178b1185d1a37fbf41ea5269c55" > "$ANDROID_HOME/licenses/android-sdk-license"
- echo -e "\n84831b9409646a918e30573bab4c9c91346d8abd" > "$ANDROID_HOME/licenses/android-sdk-preview-license"
Expand All @@ -45,18 +51,13 @@ licenses:
- 'android-sdk-license-.+'
- 'google-gdk-license-.+'

env:
global:
# install timeout in minutes (2 minutes by default)
- ADB_INSTALL_TIMEOUT=8

script:
- android list target
- ./gradlew build connectedCheck -PdisablePreDex

# Emulator Management: Create, Start and Wait
before_script:
- echo no | android create avd --force -n test -t android-21 --abi armeabi-v7a
- echo no | android create avd --force -n test -t android-$ANDROID_EMULATOR_API_LEVEL --abi $ANDROID_ABI
- emulator -avd test -no-skin -no-audio -no-window &
- android-wait-for-emulator
- adb shell input keyevent 82 &
Expand Down
1 change: 1 addition & 0 deletions app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ apply plugin: 'kotlin-android-extensions'

android {
compileSdkVersion 26
buildToolsVersion "26.0.2"
defaultConfig {
applicationId "id.co.ionsoft.randomnumberanimation"
minSdkVersion 14
Expand Down
2 changes: 1 addition & 1 deletion randomnumberanimationlibrary/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ apply plugin: 'kotlin-android'

android {
compileSdkVersion 26

buildToolsVersion "26.0.2"
defaultConfig {
minSdkVersion 14
targetSdkVersion 26
Expand Down

0 comments on commit 72e5bac

Please sign in to comment.