Skip to content

Commit

Permalink
Added travis settings for android
Browse files Browse the repository at this point in the history
  • Loading branch information
aslakhellesoy committed Jun 26, 2013
1 parent 65f3bd6 commit 62dc25f
Show file tree
Hide file tree
Showing 2 changed files with 33 additions and 6 deletions.
29 changes: 25 additions & 4 deletions .travis.yml
@@ -1,13 +1,34 @@
---
language: java
script: mvn -q clean install -P examples
script: mvn -q install -P examples
jdk:
- openjdk6
- openjdk7
- oraclejdk7
matrix:
include:
- jdk: openjdk6
script: mvn -q clean deploy --settings .travis-settings.xml -Dno.gem.deploy=true
- jdk: oraclejdk7
script: mvn -q deploy -p android --settings .travis-settings.xml -Dno.gem.deploy=true -Dandroid.device=test
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_r21.1-linux.tgz
- tar xzf android-sdk_r21.1-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-16 downloads the ARM, x86 and MIPS images (we should optimize this).
# Other relevant APIs:
# addon-google_apis-google-16
- android update sdk --filter platform-tools,extra-android-support,android-8 --no-ui --force > /dev/null

# Create and start emulator
- echo no | android create avd --force -n test -t android-8 --abi armeabi
- emulator -avd test -no-skin -no-audio -no-window &
before_script:
- ./android/wait_for_emulator
branches:
only:
- master
Expand Down
10 changes: 8 additions & 2 deletions pom.xml
Expand Up @@ -390,8 +390,6 @@
</pluginRepositories>

<modules>
<module>android</module>
<module>android-test</module>
<module>core</module>
<module>picocontainer</module>
<module>clojure</module>
Expand All @@ -411,6 +409,14 @@
</modules>

<profiles>
<profile>
<id>android</id>
<modules>
<module>android</module>
<module>android-test</module>
</modules>
</profile>

<profile>
<id>examples</id>
<modules>
Expand Down

0 comments on commit 62dc25f

Please sign in to comment.