blob: 9ef2043b93f906db540d274d02cdc5e354098a37 [file] [log] [blame]
language: android
os: linux
dist: trusty
sudo: required
addons:
apt:
sources:
- ubuntu-toolchain-r-test
packages:
- libstdc++-4.9-dev # https://github.com/nodegit/nodegit/issues/853
- gcc-4.8
- g++-4.8
jdk:
- &jdk_for_publishing oraclejdk8
android:
components:
- tools
- platform-tools
- tools # Duplicated as per https://github.com/travis-ci/travis-ci/issues/6040#issuecomment-219367943
- extra-android-m2repository
before_install:
- yes | sdkmanager "build-tools;30.0.2"
- yes | sdkmanager "platforms;android-30"
- wget https://github.com/bazelbuild/bazel/releases/download/"${BAZEL_VERSION}"/bazel_"${BAZEL_VERSION}"-linux-x86_64.deb
- sudo dpkg -i bazel_"${BAZEL_VERSION}"-linux-x86_64.deb
- sudo rm -f /etc/mavenrc
- wget http://www.us.apache.org/dist/maven/maven-3/3.6.3/binaries/apache-maven-3.6.3-bin.tar.gz
- tar -zxf apache-maven-3.6.3-bin.tar.gz
- export PATH="$PWD/apache-maven-3.6.3/bin:$PATH"
- mkdir travis_bin
- ln -s $(which gcc-4.8) travis_bin/gcc
- ln -s $(which g++-4.8) travis_bin/g++
- export PATH="${PWD}/travis_bin:${PATH}"
script:
- util/run-local-tests.sh --test_output=errors
env:
global:
# Encrypted credentials for deploying snapshots.
- secure: SV7y/nx47vwCCFJgyhZjlyC9tUneUpwe5XhEMLlj9oOpQRr4eqDumybZtKpKaxdtv13NMQ5rI9coWdO9L4TVjrJXAfG2rWoi7nXh8z0gDESVZLmCtiLPlC5zkAAur9X/6gIau5IizyliDVp7jrAI0f6Ywdd4FHcXl7t8laUzVWg=
- secure: P53TirBuYomoOqVTVnDb5Z7xc5qa5KICbkDCAdlo+Nwyb6be6Mr3rxJ0ozR201UpmCdOhGvvVpILTkakC0iF6nJc4gYjOoR95u9gNKWAsRE1tlvR4FX7o7n7aDyizaAyQXUFo5wWtLANHDvLUuf5du3xryMKJw1r9/oOpLxs+T0=
# Encrypted GitHub access token to allow util/generate-latest-docs.sh to
# push Javadoc to gh-pages.
# This uses an access token created by cgdecker and will need to be updated
# (see util/generate-latest-docs.sh for a link) if he no longer has
# permission to push to the repo.
- secure: "UpTUhCQzAGbr5JetRg2GZxp/dPDep/7Il3yGeyDECopciWdx41OPk/QNqAXBhNtKuEaMVsmASyoteuhgaTryQdV4qUIGVOMhES6kbOlYy3nwK44VdsNeeepwVospyDyZbxMtXq5LuHWuTADmAl1mdjNPNoziXc523zjnUzUx/EQ="
- JDK_FOR_PUBLISHING: *jdk_for_publishing
- BAZEL_VERSION="3.7.1"
- ADB_INSTALL_TIMEOUT=10
after_success:
- util/generate-latest-docs.sh
- util/publish-snapshot-on-commit.sh
branches:
only:
- master
- /^release.*$/