Skip to content

Commit

Permalink
Fix outdated and broken Travis configuration (close #258)
Browse files Browse the repository at this point in the history
  • Loading branch information
mhadam committed Mar 28, 2018
1 parent b702375 commit cb3b846
Showing 1 changed file with 18 additions and 5 deletions.
23 changes: 18 additions & 5 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,25 +3,38 @@ language: android
jdk: oraclejdk8

env:
matrix:
- ANDROID_SDKS=android-19 ANDROID_TARGET=android-19 ANDROID_ABI=armeabi-v7a ANDROID_TRAVIS=1
global:
- EMULATOR_API=22
- ANDROID_API=24
- ANDROID_BUILD_TOOLS=23.0.3
- ANDROID_TRAVIS=1
- secure: iXVs65+lPjyTr60MsX9K2WpjJ5ijt4cnBE9PT6ouHSjkZjugotaNoX3nXZev8fKFLsH0JPxpsxBVy66jz6iOddMfLdzSiL2oOeeYNxyNThOdGp9R/JmYtivgrMm6v3e1zzCLvj9onOwBUVdWVLD/BXgYi7wP96rJFENlVjuszys=
- secure: BXwZhWDFFXzdaTAPAvMKeOfnLHxkmdXoeMZ/GtVYkT62JxeuiaTW6Z6rT0gZKAEyxmUBxFX1CP+1m1Gi0cWrQHfTBbFDJO7iKu7mG9LcZhQ8Cm657yt2TBc+fnVqbG5OxXWhSBs1lF1gZJ6+ehEIJn3YjP6fDYv0fNnTGpYHCYo=

android:
components:
- tools
- platform-tools
- build-tools-23.0.3
- android-24
- tools
- build-tools-$ANDROID_BUILD_TOOLS
- android-$ANDROID_API
- android-$EMULATOR_API
- extra-android-support
- extra-google-m2repository
- extra-google-google_play_services
- extra-android-m2repository
- addon-google_apis-google-25 # google play services
- sys-img-armeabi-v7a-addon-google_apis-google-$ANDROID_API
- sys-img-armeabi-v7a-android-$EMULATOR_API # the fix!

licenses:
- ".+"

before_script:
- echo no | android create avd --force -n test -t $ANDROID_TARGET --abi $ANDROID_ABI
- echo "y" | android update sdk -a --no-ui --filter android-24
- echo "y" | android update sdk -a --no-ui --filter sys-img-armeabi-v7a-android-24
- 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-audio -no-window &
- chmod +x ./ci/wait_for_emulator
- ./ci/wait_for_emulator
Expand Down

0 comments on commit cb3b846

Please sign in to comment.