Skip to content

Commit

Permalink
Travis build test
Browse files Browse the repository at this point in the history
-check wether there are default scripts ran by Travis
Down the Travis rabbit hole
https://travis-ci.org/albodelu/Dexter/jobs/220847350/config
from
OneBusAway/onebusaway-android#720 (comment)
  • Loading branch information
F8Full committed Dec 30, 2017

Verified

This commit was signed with the committer’s verified signature.
erdii Josh Gwosdz
1 parent 96f3097 commit 4b89ccf
Showing 1 changed file with 12 additions and 7 deletions.
19 changes: 12 additions & 7 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -13,27 +13,33 @@ cache:
- $HOME/.gradle/caches/
- $HOME/.gradle/wrapper/

before_install:
before_install:
- mkdir "$ANDROID_HOME/licenses" || true
- echo -e "\n8933bad161af4178b1185d1a37fbf41ea5269c55" > "$ANDROID_HOME/licenses/android-sdk-license"
- echo -e "\n84831b9409646a918e30573bab4c9c91346d8abd" > "$ANDROID_HOME/licenses/android-sdk-preview-license"
- chmod +x gradlew

install:
- echo no | avdmanager create avd -n acib -k \"system-images;android-24;google_apis;armeabi-v7a\" -f --abi \"armeabi-v7a\" --tag \"google_apis\"
- emulator -avd acib -engine classic -no-window -verbose &
- adb wait-for-device get-serialno


# Emulator Management: Create, Start and Wait
before_script:
- echo no | android create avd --force -n test -t android-24 --abi armeabi-v7a -c 32M
- emulator -avd test -no-audio -no-window &
- android-wait-for-emulator
- sleep 180
- adb devices
- sleep 30
- adb shell input keyevent 82 &
- sleep 15


android:
components:
# Uncomment the lines below if you want to
# use the latest revision of Android SDK Tools
- platform-tools
- sdkmanager
- tools

# The BuildTools version used by your project
- build-tools-26.0.2
@@ -47,5 +53,4 @@ android:
- extra-google-m2repository
- extra-android-m2repository

#tests will be run on this image. More could be added if required
- sys-img-armeabi-v7a-android-24
-sys-img-armeabi-v7a-android-24

0 comments on commit 4b89ccf

Please sign in to comment.