blob: 439bcec9fc25fb3f19dbf1a40275242285d25774 [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
ronshapiro0e9c7752018-08-29 17:51:21 -070039script:
40 - bazel test --test_output errors //...
41 - pushd examples && mvn compile && popd
Jake Wharton3d46feb2012-11-07 13:01:00 -080042
Christian Edward Gruberb767f8a2014-10-07 09:55:00 -070043env:
44 global:
cgdecker13882a02019-03-13 14:35:05 -070045 # Encrypted credentials for deploying snapshots.
Christian Edward Gruber113c9a92014-10-10 13:10:48 -070046 - secure: eGc3LHBRIPmTnXLM1YoIqG1do9BkpFI2pJm3fz5Cd8UaXtf7Oefa+Ts3rcn4ipee5A+lf8kEouPshSoaQs81KZ2/qf8rSTCIqeFjHR8hzmOVYo/0zRfS/VSUT0yqN+jeRhuNk3+A49RTPlcfJqPv3tyddtrM1vF7axhCJPQIRJM=
47 - secure: LTzrlqcSNeZTOV52D3ibY9RBdxY4Yu8dUOYhAonrWLE+eDTzuoyCzcPw8pEcYVNUi1rG6Q7v3QBDTnBztsPoCbcN5tEGjw5cQEbfEzSTkWaNCFjncWn36cLwx9lgbF+5Db/L0mYJ36unDKUpKVC8AgOtxQibfv/ffugfxxj8ohY=
cgdecker13882a02019-03-13 14:35:05 -070048
49 # Encrypted GitHub access token to allow util/generate-latest-docs.sh to
50 # push Javadoc to gh-pages.
51 # This uses an access token created by cgdecker and will need to be updated
52 # (see util/generate-latest-docs.sh for a link) if he no longer has
53 # permission to push to the repo.
54 - secure: "UpTUhCQzAGbr5JetRg2GZxp/dPDep/7Il3yGeyDECopciWdx41OPk/QNqAXBhNtKuEaMVsmASyoteuhgaTryQdV4qUIGVOMhES6kbOlYy3nwK44VdsNeeepwVospyDyZbxMtXq5LuHWuTADmAl1mdjNPNoziXc523zjnUzUx/EQ="
ronshapiro898bc222016-11-09 08:25:26 -080055 - JDK_FOR_PUBLISHING: *jdk_for_publishing
ronshapiro94e7c522018-12-03 15:01:52 -080056 - BAZEL_VERSION="0.19.2"
Christian Edward Gruberb767f8a2014-10-07 09:55:00 -070057
58after_success:
59 - util/generate-latest-docs.sh
60 - util/publish-snapshot-on-commit.sh
61
Jake Wharton3d46feb2012-11-07 13:01:00 -080062branches:
cgruberb2bcc802016-03-03 11:46:56 -080063 only:
64 - master
65 - /^release.*$/