aboutsummaryrefslogtreecommitdiff
path: root/.travis.yml
diff options
context:
space:
mode:
authorAllan Wang <me@allanwang.ca>2017-12-26 04:01:23 -0500
committerGitHub <noreply@github.com>2017-12-26 04:01:23 -0500
commit7a3165ac7404381eb85ea40525db1a7a7d980761 (patch)
tree2341ea4ef0488b9abeea1fbe70697705d295aeb2 /.travis.yml
parentfb9ca21757068c0fb4123a5e30b1471ae4c32cf3 (diff)
downloadkau-7a3165ac7404381eb85ea40525db1a7a7d980761.tar.gz
kau-7a3165ac7404381eb85ea40525db1a7a7d980761.tar.bz2
kau-7a3165ac7404381eb85ea40525db1a7a7d980761.zip
Update/kpref activity (#113)
* Revamp kpref * Clean up data * Fix script * Test emulator * Test google api * Test again * Test gpg * Update dependencies
Diffstat (limited to '.travis.yml')
-rw-r--r--.travis.yml30
1 files changed, 19 insertions, 11 deletions
diff --git a/.travis.yml b/.travis.yml
index fcbb2d3..c0469ef 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -1,26 +1,33 @@
language: android
jdk:
- oraclejdk8
+env:
+ global:
+ - ANDROID_API=27
+ - EMULATOR_API=24
+ - ANDROID_BUILD_TOOLS=27.0.2
android:
components:
- tools
-# - android-21
+ - android-$EMULATOR_API
- platform-tools
- tools
- - build-tools-27.0.2
- - android-27
+ - build-tools-$ANDROID_BUILD_TOOLS
+ - android-$ANDROID_API
- extra-android-support
- extra-android-m2repository
- extra-google-m2repository
+ - sys-img-armeabi-v7a-android-$EMULATOR_API
licenses:
- ".+"
-before_install:
-- yes | sdkmanager "platforms;android-27"
-#before_script:
-#- echo no | android create avd --force -n test -t android-21 --abi armeabi-v7a
-#- emulator -avd test -no-audio -no-window &
-#- android-wait-for-emulator
-#- adb shell input keyevent 82 &
+before_script:
+- echo "y" | android update sdk -a --no-ui --filter android-$EMULATOR_API
+- echo "y" | android update sdk -a --no-ui --filter sys-img-armeabi-v7a-android-$EMULATOR_API
+- android list targets | grep -E '^id:' | awk -F '"' '{$1=""; print $2}' # list all targets
+- echo no | android create avd --force -n test -t android-$EMULATOR_API --abi armeabi-v7a
+- emulator -avd test -no-skin -no-window &
+- android-wait-for-emulator
+- adb shell input keyevent 82 &
script:
- chmod +x gradlew
- if [[ "$TRAVIS_BRANCH" == "master" ]]; then ./gradlew lintRelease publishRelease; else ./gradlew lintRelease test; fi
@@ -37,11 +44,12 @@ notifications:
on_failure: always
cache:
directories:
- - "$HOME/.m2"
+ - $HOME/.m2
- $HOME/.gradle/caches/
- $HOME/.gradle/wrapper/
- $HOME/.android/build-cache
before_install:
+- yes | sdkmanager "platforms;android-27"
- openssl aes-256-cbc -K $encrypted_12e8842891a3_key -iv $encrypted_12e8842891a3_iv
-in files/kau.tar.enc -out kau.tar -d
- tar xvf kau.tar \ No newline at end of file