Files
open-keychain/.travis.yml

49 lines
1.7 KiB
YAML
Raw Normal View History

2015-06-13 22:30:57 +02:00
language: android
2014-07-09 17:41:13 +02:00
jdk: openjdk7
2016-07-09 15:12:27 +02:00
env:
matrix:
- ANDROID_TARGET=android-21 ANDROID_ABI=armeabi-v7a
global:
# wait up to 10 minutes for adb to connect to emulator
- ADB_INSTALL_TIMEOUT=10
# force non-container build
sudo: required
# OpenJDK 6 and OpenJDK 7 processes will encounter buffer overflows when the host name is too long.
# hostname addon disabled due to https://github.com/travis-ci/travis-ci/issues/5669
# https://docs.travis-ci.com/user/hostname
#addons:
# hostname: short-hostname
# workaround from https://github.com/travis-ci/travis-ci/issues/5227#issuecomment-165131913
before_install:
- cat /etc/hosts # optionally check the content *before*
- sudo hostname "$(hostname | cut -c1-63)"
- sed -e "s/^\\(127\\.0\\.0\\.1.*\\)/\\1 $(hostname | cut -c1-63)/" /etc/hosts | sudo tee /etc/hosts
- cat /etc/hosts # optionally check the content *after*
2015-06-13 22:30:57 +02:00
android:
components:
- android-22
2016-07-09 15:09:44 +02:00
- android-23
- tools
2015-06-13 22:30:57 +02:00
- platform-tools
2016-07-09 15:09:44 +02:00
- build-tools-23.0.2
2015-06-13 22:30:57 +02:00
- extra-android-support
- extra-android-m2repository
2016-07-09 15:12:27 +02:00
- sys-img-armeabi-v7a-android-21
2015-06-13 22:30:57 +02:00
licenses:
- 'android-sdk-preview-license-52d11cd2'
- 'android-sdk-license-.+'
- 'google-gdk-license-.+'
2016-07-09 15:12:27 +02:00
before_script:
- echo no | android create avd --force --name test --target $ANDROID_TARGET --abi $ANDROID_ABI
- emulator -avd test -no-skin -no-audio -no-window &
- android-wait-for-emulator
- adb devices
- adb shell input keyevent 82 &
- adb shell svc power stayon true
2015-06-17 04:27:56 +02:00
script:
2016-07-09 15:12:27 +02:00
- ./gradlew --stacktrace connectedFdroidDebugAndroidTest -i
2015-11-16 00:12:29 +01:00
- ./gradlew --stacktrace testDebug jacocoTestReport coveralls