From 2436f6505a2d689002e721a6ca3a4048d7a67d52 Mon Sep 17 00:00:00 2001 From: Jamie McDonald Date: Tue, 18 Mar 2014 00:04:13 +0100 Subject: [PATCH] Trying out a Travis config --- .travis.yaml | 35 +++++++++++++++++++++++++++++++++++ .travis.yml | 35 +++++++++++++++++++++++++++++++++++ 2 files changed, 70 insertions(+) create mode 100644 .travis.yaml create mode 100644 .travis.yml diff --git a/.travis.yaml b/.travis.yaml new file mode 100644 index 0000000..0b40f8b --- /dev/null +++ b/.travis.yaml @@ -0,0 +1,35 @@ +language: java +jdk: oraclejdk7 +env: + matrix: + - ANDROID_TARGET=android-19 ANDROID_ABI=armeabi-v7a + +before_install: + # Install base Android SDK + - sudo apt-get update -qq + - if [ `uname -m` = x86_64 ]; then sudo apt-get install -qq --force-yes libgd2-xpm ia32-libs ia32-libs-multiarch > /dev/null; fi + - wget http://dl.google.com/android/android-sdk_r22.3-linux.tgz + - tar xzf android-sdk_r22.3-linux.tgz + - export ANDROID_HOME=$PWD/android-sdk-linux + - export PATH=${PATH}:${ANDROID_HOME}/tools:${ANDROID_HOME}/platform-tools + + # Install required components + # For a full list, run `android list sdk -a --extended` + # Note that sysimg-19 downloads only ARM, because only the first license query is accepted. + - echo yes | android update sdk --filter platform-tools --no-ui --force > /dev/null + - echo yes | android update sdk --all --filter build-tools-19.0.0 --no-ui --force > /dev/null + - echo yes | android update sdk --filter android-19 --no-ui --force > /dev/null + - echo yes | android update sdk --filter sysimg-19 --no-ui --force > /dev/null + - echo yes | android update sdk --filter extra-android-support --no-ui --force > /dev/null + - echo yes | android update sdk --filter extra-android-m2repository --no-ui --force > /dev/null + + # Create and start emulator + - echo no | android create avd --force -n test -t $ANDROID_TARGET --abi $ANDROID_ABI + - emulator -avd test -no-skin -no-audio -no-window & + +before_script: + - adb wait-for-device + - adb shell input keyevent 82 & + +script: + - ./gradlew connectedAndroidTest \ No newline at end of file diff --git a/.travis.yml b/.travis.yml new file mode 100644 index 0000000..0b40f8b --- /dev/null +++ b/.travis.yml @@ -0,0 +1,35 @@ +language: java +jdk: oraclejdk7 +env: + matrix: + - ANDROID_TARGET=android-19 ANDROID_ABI=armeabi-v7a + +before_install: + # Install base Android SDK + - sudo apt-get update -qq + - if [ `uname -m` = x86_64 ]; then sudo apt-get install -qq --force-yes libgd2-xpm ia32-libs ia32-libs-multiarch > /dev/null; fi + - wget http://dl.google.com/android/android-sdk_r22.3-linux.tgz + - tar xzf android-sdk_r22.3-linux.tgz + - export ANDROID_HOME=$PWD/android-sdk-linux + - export PATH=${PATH}:${ANDROID_HOME}/tools:${ANDROID_HOME}/platform-tools + + # Install required components + # For a full list, run `android list sdk -a --extended` + # Note that sysimg-19 downloads only ARM, because only the first license query is accepted. + - echo yes | android update sdk --filter platform-tools --no-ui --force > /dev/null + - echo yes | android update sdk --all --filter build-tools-19.0.0 --no-ui --force > /dev/null + - echo yes | android update sdk --filter android-19 --no-ui --force > /dev/null + - echo yes | android update sdk --filter sysimg-19 --no-ui --force > /dev/null + - echo yes | android update sdk --filter extra-android-support --no-ui --force > /dev/null + - echo yes | android update sdk --filter extra-android-m2repository --no-ui --force > /dev/null + + # Create and start emulator + - echo no | android create avd --force -n test -t $ANDROID_TARGET --abi $ANDROID_ABI + - emulator -avd test -no-skin -no-audio -no-window & + +before_script: + - adb wait-for-device + - adb shell input keyevent 82 & + +script: + - ./gradlew connectedAndroidTest \ No newline at end of file