blob: 02142f6e150c36f3380b3e20214b5213d9be0519 [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:
ronshapiro31d711c2017-01-13 08:58:02 -08009 - ubuntu-toolchain-r-test
10 packages:
ronshapiro31d711c2017-01-13 08:58:02 -080011 - libstdc++-4.9-dev # https://github.com/nodegit/nodegit/issues/853
ronshapiro9f513612017-05-01 08:47:25 -070012 - gcc-4.8
13 - g++-4.8
ronshapiro31d711c2017-01-13 08:58:02 -080014
Christian Edward Gruber5a15b9e2013-06-12 11:40:34 -070015jdk:
ronshapiro898bc222016-11-09 08:25:26 -080016 - &jdk_for_publishing oraclejdk8
Christian Edward Gruber5a15b9e2013-06-12 11:40:34 -070017
Jake Wharton9f121ee2014-09-16 23:06:12 -070018android:
19 components:
ronshapiro5abbc822016-11-16 11:17:28 -080020 - tools
21 - tools # Duplicated as per https://github.com/travis-ci/travis-ci/issues/6040#issuecomment-219367943
ronshapiroebee36e2017-10-23 12:40:24 -070022 - build-tools-26.0.2
23 - android-26
ronshapiro5abbc822016-11-16 11:17:28 -080024 - platform-tools
25 - extra-android-m2repository
Christian Edward Gruber5a15b9e2013-06-12 11:40:34 -070026
Nguyen Truong Thoc25c7412015-03-27 04:09:29 +070027before_install:
ronshapiro792adb32017-06-14 11:15:31 -070028 - wget https://github.com/bazelbuild/bazel/releases/download/"${BAZEL_VERSION}"/bazel_"${BAZEL_VERSION}"-linux-x86_64.deb
29 - sudo dpkg -i bazel_"${BAZEL_VERSION}"-linux-x86_64.deb
Nguyen Truong Thoc25c7412015-03-27 04:09:29 +070030 - sudo rm -f /etc/mavenrc
31 - wget http://www.us.apache.org/dist/maven/maven-3/3.1.1/binaries/apache-maven-3.1.1-bin.tar.gz
ronshapiro6589c992017-05-01 08:23:27 -070032 - tar -zxf apache-maven-3.1.1-bin.tar.gz
33 - export PATH="$PWD/apache-maven-3.1.1/bin:$PATH"
ronshapiro9f513612017-05-01 08:47:25 -070034 - mkdir travis_bin
35 - ln -s $(which gcc-4.8) travis_bin/gcc
36 - ln -s $(which g++-4.8) travis_bin/g++
37 - export PATH="${PWD}/travis_bin:${PATH}"
Nguyen Truong Thoc25c7412015-03-27 04:09:29 +070038
ronshapirod1166592017-03-15 10:36:54 -070039script: bazel test --test_output errors //...
Jake Wharton3d46feb2012-11-07 13:01:00 -080040
Christian Edward Gruberb767f8a2014-10-07 09:55:00 -070041env:
42 global:
Christian Edward Gruber113c9a92014-10-10 13:10:48 -070043 - secure: eGc3LHBRIPmTnXLM1YoIqG1do9BkpFI2pJm3fz5Cd8UaXtf7Oefa+Ts3rcn4ipee5A+lf8kEouPshSoaQs81KZ2/qf8rSTCIqeFjHR8hzmOVYo/0zRfS/VSUT0yqN+jeRhuNk3+A49RTPlcfJqPv3tyddtrM1vF7axhCJPQIRJM=
44 - secure: LTzrlqcSNeZTOV52D3ibY9RBdxY4Yu8dUOYhAonrWLE+eDTzuoyCzcPw8pEcYVNUi1rG6Q7v3QBDTnBztsPoCbcN5tEGjw5cQEbfEzSTkWaNCFjncWn36cLwx9lgbF+5Db/L0mYJ36unDKUpKVC8AgOtxQibfv/ffugfxxj8ohY=
Christian Edward Gruberb767f8a2014-10-07 09:55:00 -070045 - secure: PEdRiHTy+xVFPnlBwOhr7RVW/QIFSgd4hO0LESRBeF7KGIjxTZWtKPjnYrysZFm6tozMk6WBVJO6avOss0v7L64nemwpCnSspNYBa6pRGPgQ3rv/wgdPSzqDDmABmpPC18EHbUtF94KVdRX3Cr4kmwKQyD+YUKNRCY11Txt+xfo=
ronshapiro898bc222016-11-09 08:25:26 -080046 - JDK_FOR_PUBLISHING: *jdk_for_publishing
ronshapiroebee36e2017-10-23 12:40:24 -070047 - BAZEL_VERSION="0.7.0"
Christian Edward Gruberb767f8a2014-10-07 09:55:00 -070048
49after_success:
50 - util/generate-latest-docs.sh
51 - util/publish-snapshot-on-commit.sh
52
Jake Wharton3d46feb2012-11-07 13:01:00 -080053branches:
cgruberb2bcc802016-03-03 11:46:56 -080054 only:
55 - master
56 - /^release.*$/