blob: a48f957824353786741880cc8161964e5cacca93 [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
ronshapiro177809c2019-04-12 10:35:50 -07004dist: trusty
ronshapiro31d711c2017-01-13 08:58:02 -08005sudo: 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
erichang5e7374e2019-10-25 16:35:36 -070022 - build-tools-29.0.2
23 - android-29
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
danysantiagoa0872352020-05-12 18:02:33 -070031 - wget http://www.us.apache.org/dist/maven/maven-3/3.6.3/binaries/apache-maven-3.6.3-bin.tar.gz
32 - tar -zxf apache-maven-3.6.3-bin.tar.gz
33 - export PATH="$PWD/apache-maven-3.6.3/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.
erichangf4d85c02020-05-14 15:16:25 -070046 - secure: SV7y/nx47vwCCFJgyhZjlyC9tUneUpwe5XhEMLlj9oOpQRr4eqDumybZtKpKaxdtv13NMQ5rI9coWdO9L4TVjrJXAfG2rWoi7nXh8z0gDESVZLmCtiLPlC5zkAAur9X/6gIau5IizyliDVp7jrAI0f6Ywdd4FHcXl7t8laUzVWg=
47 - secure: P53TirBuYomoOqVTVnDb5Z7xc5qa5KICbkDCAdlo+Nwyb6be6Mr3rxJ0ozR201UpmCdOhGvvVpILTkakC0iF6nJc4gYjOoR95u9gNKWAsRE1tlvR4FX7o7n7aDyizaAyQXUFo5wWtLANHDvLUuf5du3xryMKJw1r9/oOpLxs+T0=
48
cgdecker13882a02019-03-13 14:35:05 -070049
50 # Encrypted GitHub access token to allow util/generate-latest-docs.sh to
51 # push Javadoc to gh-pages.
52 # This uses an access token created by cgdecker and will need to be updated
53 # (see util/generate-latest-docs.sh for a link) if he no longer has
54 # permission to push to the repo.
55 - secure: "UpTUhCQzAGbr5JetRg2GZxp/dPDep/7Il3yGeyDECopciWdx41OPk/QNqAXBhNtKuEaMVsmASyoteuhgaTryQdV4qUIGVOMhES6kbOlYy3nwK44VdsNeeepwVospyDyZbxMtXq5LuHWuTADmAl1mdjNPNoziXc523zjnUzUx/EQ="
ronshapiro898bc222016-11-09 08:25:26 -080056 - JDK_FOR_PUBLISHING: *jdk_for_publishing
erichangae6db7c2020-03-13 11:04:19 -070057 - BAZEL_VERSION="2.2.0"
Christian Edward Gruberb767f8a2014-10-07 09:55:00 -070058
59after_success:
60 - util/generate-latest-docs.sh
61 - util/publish-snapshot-on-commit.sh
62
Jake Wharton3d46feb2012-11-07 13:01:00 -080063branches:
cgruberb2bcc802016-03-03 11:46:56 -080064 only:
65 - master
66 - /^release.*$/