Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

TravisCI Emulator Version #84

Open
wants to merge 17 commits into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 11 additions & 8 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
language: android
# sudo set to required because of an issue with how TravisCI handles builds in Docker containers https://github.com/travis-ci/travis-ci/issues/3695.
# Setting sudo to required prevents Travis from testing the project in a Docker container.
sudo: required
#sudo: required
jdk: oraclejdk8
dist: precise
dist: xenial

before_cache:
- rm -f $HOME/.gradle/caches/modules-2/modules-2.lock
Expand All @@ -16,7 +16,7 @@ cache:

env:
matrix:
- ANDROID_TARGET=android-22 ANDROID_ABI=armeabi-v7a
- ANDROID_TARGET=android-26 ANDROID_ABI=google_apis/x86_64
global:
# wait up to 10 minutes for adb to connect to emulator
- ADB_INSTALL_TIMEOUT=10
Expand All @@ -26,11 +26,12 @@ android:
components:
# tools required
- tools
- platform-tools
- tools
# The BuildTools version used by your project
- build-tools-28.0.2
# The SDK version used to compile your projects
- android-27
- android-22
- android-26
# Additional components here
- extra-google-google_play_services
- extra-google-m2repository
Expand All @@ -39,17 +40,19 @@ android:

# Specify at least one system image,
# if you need to run emulator(s) during your tests
- sys-img-armeabi-v7a-android-22
- sys-img-x86_64-google_apis-26

addons:
apt_packages:
- pandoc

before_script:
# Emulator Management: Create, Start and Wait
- android list sdk --no-ui --all --extended
- echo no | android create avd --force -n test -t $ANDROID_TARGET --abi $ANDROID_ABI
- emulator -avd test -no-skin -no-audio -no-window &
- adb wait-for-device
- ls -la
- emulator64-x86 -avd test -no-skin -no-audio -no-window &
- timeout 1200 adb wait-for-device
- adb shell input keyevent 82 &

script:
Expand Down