forked from roboguice/roboguice
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
24 lines (20 loc) · 1.22 KB
/
.travis.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
language: java
jdk: oraclejdk7
# http://blog.xeiam.com/2013/05/configure-travis-ci-to-deploy-snapshots.html
env:
global:
- secure: "EPQOklc+7/wujJipIqZFwE2+HtPjsnVoJWniV2eQ1qWtxDBDrKcpIW3dIYhucQUad8MnUWX4pZ1T4mLL6W3DpqUmGzJRfunu0iA1k2a3Z4BD/2nkO9devRv0KEJV0UCMv08mYA91XSJcuzeT4DiiLja5oCW2e4y2vOCVmhPtbJw="
- secure: "dOGu9TKpqafJ6ALPvRfbnWwwQxPIZj6EAkhlcFsnq+PGLrkV0nXlmfPGZDGIK/LMoFuttQyqIxo7ypxQ2pmVAfidSqJcfg8XpVi7WxTSB1jD5eVtYjmpw+o3M44Il0MxGdoEhd7tEPm5noC2EToezBrztJlPmGE+KOfbxS7tMII="
# http://levi-wilson.blogspot.com/2012/06/maven-android-travis-ci-and-more.html
# http://stackoverflow.com/a/3008489/82156
before_install:
# Install base Android SDK
- git clone -b travis `git config --get remote.origin.url` target/travis
- sudo apt-get update -qq
- sudo apt-get install -qq libstdc++6:i386 lib32z1
- export COMPONENTS=build-tools-19.0.1,android-19,android-17
- curl -L https://raw.github.com/embarkmobile/android-sdk-installer/master/android-sdk-installer | bash /dev/stdin --install=$COMPONENTS
- source ~/.android-sdk-installer/env
script:
- if [ "$TRAVIS_BRANCH" == "master" ] ; then target=deploy ; else target=install ; fi
- mvn $target --settings target/travis/settings.xml