blob: 8560e1661a67dcaa5053d3c070d62b5f70aafca5 [file] [log] [blame]
Jake Wharton9f121ee2014-09-16 23:06:12 -07001language: android
Jake Whartond45582b2013-05-02 11:41:46 -07002
ronshapiro31d711c2017-01-13 08:58:02 -08003os: linux
4dist: precise
5sudo: required
6addons:
7 apt:
8 sources:
9 # https://github.com/bazelbuild/bazel/issues/1821#issuecomment-262870638
10 - sourceline: "deb [arch=amd64] http://storage.googleapis.com/bazel-apt stable jdk1.8"
11 key_url: "https://storage.googleapis.com/bazel-apt/doc/apt-key.pub.gpg"
12 - ubuntu-toolchain-r-test
13 packages:
14 - oracle-java8-installer
15 - libstdc++-4.9-dev # https://github.com/nodegit/nodegit/issues/853
16 - bazel=0.4.3
17
Christian Edward Gruber5a15b9e2013-06-12 11:40:34 -070018jdk:
ronshapiro898bc222016-11-09 08:25:26 -080019 - &jdk_for_publishing oraclejdk8
Christian Edward Gruber5a15b9e2013-06-12 11:40:34 -070020
Jake Wharton9f121ee2014-09-16 23:06:12 -070021android:
22 components:
ronshapiro5abbc822016-11-16 11:17:28 -080023 - tools
24 - tools # Duplicated as per https://github.com/travis-ci/travis-ci/issues/6040#issuecomment-219367943
25 - build-tools-25.0.0
26 - android-25
27 - platform-tools
28 - extra-android-m2repository
Christian Edward Gruber5a15b9e2013-06-12 11:40:34 -070029
Nguyen Truong Thoc25c7412015-03-27 04:09:29 +070030before_install:
ronshapiro31d711c2017-01-13 08:58:02 -080031 - echo "ANDROID_HOME = \"$ANDROID_HOME\"" > WORKSPACE.user.bzl
Nguyen Truong Thoc25c7412015-03-27 04:09:29 +070032 - sudo rm -f /etc/mavenrc
33 - wget http://www.us.apache.org/dist/maven/maven-3/3.1.1/binaries/apache-maven-3.1.1-bin.tar.gz
34 - tar -zxvf apache-maven-3.1.1-bin.tar.gz
35 - export MAVEN_OPTS="-Xmx512m -XX:MaxPermSize=192m"
36 - export M2_HOME=$PWD/apache-maven-3.1.1
37 - export PATH=$M2_HOME/bin:$PATH
38 - mvn --version
39
ronshapiro31d711c2017-01-13 08:58:02 -080040install:
41 - bazel build //...
42 - mvn -B -P!standard-with-extra-repos -U install clean --fail-never --quiet -DskipTests=true -Dinvoker.skip=true
Christian Edward Gruber5a15b9e2013-06-12 11:40:34 -070043
ronshapiro31d711c2017-01-13 08:58:02 -080044script:
45 - bazel test //...
46 - mvn -B -P!standard-with-extra-repos -U verify --fail-at-end -Dsource.skip=true -Dmaven.javadoc.skip=true
Jake Wharton3d46feb2012-11-07 13:01:00 -080047
Christian Edward Gruberb767f8a2014-10-07 09:55:00 -070048env:
49 global:
Christian Edward Gruber113c9a92014-10-10 13:10:48 -070050 - secure: eGc3LHBRIPmTnXLM1YoIqG1do9BkpFI2pJm3fz5Cd8UaXtf7Oefa+Ts3rcn4ipee5A+lf8kEouPshSoaQs81KZ2/qf8rSTCIqeFjHR8hzmOVYo/0zRfS/VSUT0yqN+jeRhuNk3+A49RTPlcfJqPv3tyddtrM1vF7axhCJPQIRJM=
51 - secure: LTzrlqcSNeZTOV52D3ibY9RBdxY4Yu8dUOYhAonrWLE+eDTzuoyCzcPw8pEcYVNUi1rG6Q7v3QBDTnBztsPoCbcN5tEGjw5cQEbfEzSTkWaNCFjncWn36cLwx9lgbF+5Db/L0mYJ36unDKUpKVC8AgOtxQibfv/ffugfxxj8ohY=
Christian Edward Gruberb767f8a2014-10-07 09:55:00 -070052 - secure: PEdRiHTy+xVFPnlBwOhr7RVW/QIFSgd4hO0LESRBeF7KGIjxTZWtKPjnYrysZFm6tozMk6WBVJO6avOss0v7L64nemwpCnSspNYBa6pRGPgQ3rv/wgdPSzqDDmABmpPC18EHbUtF94KVdRX3Cr4kmwKQyD+YUKNRCY11Txt+xfo=
ronshapiro898bc222016-11-09 08:25:26 -080053 - JDK_FOR_PUBLISHING: *jdk_for_publishing
Christian Edward Gruberb767f8a2014-10-07 09:55:00 -070054
55after_success:
56 - util/generate-latest-docs.sh
57 - util/publish-snapshot-on-commit.sh
58
Jake Wharton3d46feb2012-11-07 13:01:00 -080059branches:
cgruberb2bcc802016-03-03 11:46:56 -080060 only:
61 - master
62 - /^release.*$/
ronshapiro5abbc822016-11-16 11:17:28 -080063
64cache:
65 directories:
66 - $HOME/.m2