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 |
ronshapiro | 177809c | 2019-04-12 10:35:50 -0700 | [diff] [blame] | 4 | dist: trusty |
ronshapiro | 31d711c | 2017-01-13 08:58:02 -0800 | [diff] [blame] | 5 | sudo: required |
| 6 | addons: |
| 7 | apt: |
| 8 | sources: |
ronshapiro | 31d711c | 2017-01-13 08:58:02 -0800 | [diff] [blame] | 9 | - ubuntu-toolchain-r-test |
| 10 | packages: |
ronshapiro | 31d711c | 2017-01-13 08:58:02 -0800 | [diff] [blame] | 11 | - libstdc++-4.9-dev # https://github.com/nodegit/nodegit/issues/853 |
ronshapiro | 9f51361 | 2017-05-01 08:47:25 -0700 | [diff] [blame] | 12 | - gcc-4.8 |
| 13 | - g++-4.8 |
ronshapiro | 31d711c | 2017-01-13 08:58:02 -0800 | [diff] [blame] | 14 | |
Christian Edward Gruber | 5a15b9e | 2013-06-12 11:40:34 -0700 | [diff] [blame] | 15 | jdk: |
ronshapiro | 898bc22 | 2016-11-09 08:25:26 -0800 | [diff] [blame] | 16 | - &jdk_for_publishing oraclejdk8 |
Christian Edward Gruber | 5a15b9e | 2013-06-12 11:40:34 -0700 | [diff] [blame] | 17 | |
Jake Wharton | 9f121ee | 2014-09-16 23:06:12 -0700 | [diff] [blame] | 18 | android: |
| 19 | components: |
ronshapiro | 5abbc82 | 2016-11-16 11:17:28 -0800 | [diff] [blame] | 20 | - tools |
| 21 | - tools # Duplicated as per https://github.com/travis-ci/travis-ci/issues/6040#issuecomment-219367943 |
erichang | 5e7374e | 2019-10-25 16:35:36 -0700 | [diff] [blame] | 22 | - build-tools-29.0.2 |
| 23 | - android-29 |
ronshapiro | 5abbc82 | 2016-11-16 11:17:28 -0800 | [diff] [blame] | 24 | - platform-tools |
| 25 | - extra-android-m2repository |
Christian Edward Gruber | 5a15b9e | 2013-06-12 11:40:34 -0700 | [diff] [blame] | 26 | |
Nguyen Truong Tho | c25c741 | 2015-03-27 04:09:29 +0700 | [diff] [blame] | 27 | before_install: |
ronshapiro | 792adb3 | 2017-06-14 11:15:31 -0700 | [diff] [blame] | 28 | - 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 Tho | c25c741 | 2015-03-27 04:09:29 +0700 | [diff] [blame] | 30 | - sudo rm -f /etc/mavenrc |
danysantiago | a087235 | 2020-05-12 18:02:33 -0700 | [diff] [blame] | 31 | - 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" |
ronshapiro | 9f51361 | 2017-05-01 08:47:25 -0700 | [diff] [blame] | 34 | - 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 Tho | c25c741 | 2015-03-27 04:09:29 +0700 | [diff] [blame] | 38 | |
ronshapiro | 0e9c775 | 2018-08-29 17:51:21 -0700 | [diff] [blame] | 39 | script: |
| 40 | - bazel test --test_output errors //... |
| 41 | - pushd examples && mvn compile && popd |
Jake Wharton | 3d46feb | 2012-11-07 13:01:00 -0800 | [diff] [blame] | 42 | |
Christian Edward Gruber | b767f8a | 2014-10-07 09:55:00 -0700 | [diff] [blame] | 43 | env: |
| 44 | global: |
cgdecker | 13882a0 | 2019-03-13 14:35:05 -0700 | [diff] [blame] | 45 | # Encrypted credentials for deploying snapshots. |
erichang | f4d85c0 | 2020-05-14 15:16:25 -0700 | [diff] [blame] | 46 | - secure: SV7y/nx47vwCCFJgyhZjlyC9tUneUpwe5XhEMLlj9oOpQRr4eqDumybZtKpKaxdtv13NMQ5rI9coWdO9L4TVjrJXAfG2rWoi7nXh8z0gDESVZLmCtiLPlC5zkAAur9X/6gIau5IizyliDVp7jrAI0f6Ywdd4FHcXl7t8laUzVWg= |
| 47 | - secure: P53TirBuYomoOqVTVnDb5Z7xc5qa5KICbkDCAdlo+Nwyb6be6Mr3rxJ0ozR201UpmCdOhGvvVpILTkakC0iF6nJc4gYjOoR95u9gNKWAsRE1tlvR4FX7o7n7aDyizaAyQXUFo5wWtLANHDvLUuf5du3xryMKJw1r9/oOpLxs+T0= |
| 48 | |
cgdecker | 13882a0 | 2019-03-13 14:35:05 -0700 | [diff] [blame] | 49 | |
| 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=" |
ronshapiro | 898bc22 | 2016-11-09 08:25:26 -0800 | [diff] [blame] | 56 | - JDK_FOR_PUBLISHING: *jdk_for_publishing |
erichang | ae6db7c | 2020-03-13 11:04:19 -0700 | [diff] [blame] | 57 | - BAZEL_VERSION="2.2.0" |
Christian Edward Gruber | b767f8a | 2014-10-07 09:55:00 -0700 | [diff] [blame] | 58 | |
| 59 | after_success: |
| 60 | - util/generate-latest-docs.sh |
| 61 | - util/publish-snapshot-on-commit.sh |
| 62 | |
Jake Wharton | 3d46feb | 2012-11-07 13:01:00 -0800 | [diff] [blame] | 63 | branches: |
cgruber | b2bcc80 | 2016-03-03 11:46:56 -0800 | [diff] [blame] | 64 | only: |
| 65 | - master |
| 66 | - /^release.*$/ |