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: |
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 |
ronshapiro | ebee36e | 2017-10-23 12:40:24 -0700 | [diff] [blame] | 22 | - build-tools-26.0.2 |
| 23 | - android-26 |
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 |
| 31 | - wget http://www.us.apache.org/dist/maven/maven-3/3.1.1/binaries/apache-maven-3.1.1-bin.tar.gz |
ronshapiro | 6589c99 | 2017-05-01 08:23:27 -0700 | [diff] [blame] | 32 | - tar -zxf apache-maven-3.1.1-bin.tar.gz |
| 33 | - export PATH="$PWD/apache-maven-3.1.1/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. |
Christian Edward Gruber | 113c9a9 | 2014-10-10 13:10:48 -0700 | [diff] [blame] | 46 | - secure: eGc3LHBRIPmTnXLM1YoIqG1do9BkpFI2pJm3fz5Cd8UaXtf7Oefa+Ts3rcn4ipee5A+lf8kEouPshSoaQs81KZ2/qf8rSTCIqeFjHR8hzmOVYo/0zRfS/VSUT0yqN+jeRhuNk3+A49RTPlcfJqPv3tyddtrM1vF7axhCJPQIRJM= |
| 47 | - secure: LTzrlqcSNeZTOV52D3ibY9RBdxY4Yu8dUOYhAonrWLE+eDTzuoyCzcPw8pEcYVNUi1rG6Q7v3QBDTnBztsPoCbcN5tEGjw5cQEbfEzSTkWaNCFjncWn36cLwx9lgbF+5Db/L0mYJ36unDKUpKVC8AgOtxQibfv/ffugfxxj8ohY= |
cgdecker | 13882a0 | 2019-03-13 14:35:05 -0700 | [diff] [blame^] | 48 | |
| 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=" |
ronshapiro | 898bc22 | 2016-11-09 08:25:26 -0800 | [diff] [blame] | 55 | - JDK_FOR_PUBLISHING: *jdk_for_publishing |
ronshapiro | 94e7c52 | 2018-12-03 15:01:52 -0800 | [diff] [blame] | 56 | - BAZEL_VERSION="0.19.2" |
Christian Edward Gruber | b767f8a | 2014-10-07 09:55:00 -0700 | [diff] [blame] | 57 | |
| 58 | after_success: |
| 59 | - util/generate-latest-docs.sh |
| 60 | - util/publish-snapshot-on-commit.sh |
| 61 | |
Jake Wharton | 3d46feb | 2012-11-07 13:01:00 -0800 | [diff] [blame] | 62 | branches: |
cgruber | b2bcc80 | 2016-03-03 11:46:56 -0800 | [diff] [blame] | 63 | only: |
| 64 | - master |
| 65 | - /^release.*$/ |