Jake Wharton | 9f121ee | 2014-09-16 23:06:12 -0700 | [diff] [blame] | 1 | language: android |
Jake Wharton | d45582b | 2013-05-02 11:41:46 -0700 | [diff] [blame] | 2 | |
ronshapiro | 31d711c | 2017-01-13 08:58:02 -0800 | [diff] [blame^] | 3 | os: linux |
| 4 | dist: precise |
| 5 | sudo: required |
| 6 | addons: |
| 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 Gruber | 5a15b9e | 2013-06-12 11:40:34 -0700 | [diff] [blame] | 18 | jdk: |
ronshapiro | 898bc22 | 2016-11-09 08:25:26 -0800 | [diff] [blame] | 19 | - &jdk_for_publishing oraclejdk8 |
Christian Edward Gruber | 5a15b9e | 2013-06-12 11:40:34 -0700 | [diff] [blame] | 20 | |
Jake Wharton | 9f121ee | 2014-09-16 23:06:12 -0700 | [diff] [blame] | 21 | android: |
| 22 | components: |
ronshapiro | 5abbc82 | 2016-11-16 11:17:28 -0800 | [diff] [blame] | 23 | - 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 Gruber | 5a15b9e | 2013-06-12 11:40:34 -0700 | [diff] [blame] | 29 | |
Nguyen Truong Tho | c25c741 | 2015-03-27 04:09:29 +0700 | [diff] [blame] | 30 | before_install: |
ronshapiro | 31d711c | 2017-01-13 08:58:02 -0800 | [diff] [blame^] | 31 | - echo "ANDROID_HOME = \"$ANDROID_HOME\"" > WORKSPACE.user.bzl |
Nguyen Truong Tho | c25c741 | 2015-03-27 04:09:29 +0700 | [diff] [blame] | 32 | - 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 | |
ronshapiro | 31d711c | 2017-01-13 08:58:02 -0800 | [diff] [blame^] | 40 | install: |
| 41 | - bazel build //... |
| 42 | - mvn -B -P!standard-with-extra-repos -U install clean --fail-never --quiet -DskipTests=true -Dinvoker.skip=true |
Christian Edward Gruber | 5a15b9e | 2013-06-12 11:40:34 -0700 | [diff] [blame] | 43 | |
ronshapiro | 31d711c | 2017-01-13 08:58:02 -0800 | [diff] [blame^] | 44 | script: |
| 45 | - bazel test //... |
| 46 | - mvn -B -P!standard-with-extra-repos -U verify --fail-at-end -Dsource.skip=true -Dmaven.javadoc.skip=true |
Jake Wharton | 3d46feb | 2012-11-07 13:01:00 -0800 | [diff] [blame] | 47 | |
Christian Edward Gruber | b767f8a | 2014-10-07 09:55:00 -0700 | [diff] [blame] | 48 | env: |
| 49 | global: |
Christian Edward Gruber | 113c9a9 | 2014-10-10 13:10:48 -0700 | [diff] [blame] | 50 | - secure: eGc3LHBRIPmTnXLM1YoIqG1do9BkpFI2pJm3fz5Cd8UaXtf7Oefa+Ts3rcn4ipee5A+lf8kEouPshSoaQs81KZ2/qf8rSTCIqeFjHR8hzmOVYo/0zRfS/VSUT0yqN+jeRhuNk3+A49RTPlcfJqPv3tyddtrM1vF7axhCJPQIRJM= |
| 51 | - secure: LTzrlqcSNeZTOV52D3ibY9RBdxY4Yu8dUOYhAonrWLE+eDTzuoyCzcPw8pEcYVNUi1rG6Q7v3QBDTnBztsPoCbcN5tEGjw5cQEbfEzSTkWaNCFjncWn36cLwx9lgbF+5Db/L0mYJ36unDKUpKVC8AgOtxQibfv/ffugfxxj8ohY= |
Christian Edward Gruber | b767f8a | 2014-10-07 09:55:00 -0700 | [diff] [blame] | 52 | - secure: PEdRiHTy+xVFPnlBwOhr7RVW/QIFSgd4hO0LESRBeF7KGIjxTZWtKPjnYrysZFm6tozMk6WBVJO6avOss0v7L64nemwpCnSspNYBa6pRGPgQ3rv/wgdPSzqDDmABmpPC18EHbUtF94KVdRX3Cr4kmwKQyD+YUKNRCY11Txt+xfo= |
ronshapiro | 898bc22 | 2016-11-09 08:25:26 -0800 | [diff] [blame] | 53 | - JDK_FOR_PUBLISHING: *jdk_for_publishing |
Christian Edward Gruber | b767f8a | 2014-10-07 09:55:00 -0700 | [diff] [blame] | 54 | |
| 55 | after_success: |
| 56 | - util/generate-latest-docs.sh |
| 57 | - util/publish-snapshot-on-commit.sh |
| 58 | |
Jake Wharton | 3d46feb | 2012-11-07 13:01:00 -0800 | [diff] [blame] | 59 | branches: |
cgruber | b2bcc80 | 2016-03-03 11:46:56 -0800 | [diff] [blame] | 60 | only: |
| 61 | - master |
| 62 | - /^release.*$/ |
ronshapiro | 5abbc82 | 2016-11-16 11:17:28 -0800 | [diff] [blame] | 63 | |
| 64 | cache: |
| 65 | directories: |
| 66 | - $HOME/.m2 |