| # Install the JREs that are used for integration tests in |
| # contrib/agent, but are not installed by default. |
| env: TASK=CHECKER_FRAMEWORK |
| - env: TASK=CHECK_GIT_HISTORY |
| # Build example projects last, since they are affected by fewer pull requests. |
| env: TASK=CHECK_EXAMPLES_LICENSE |
| env: TASK=BUILD_EXAMPLES_GRADLE |
| env: TASK=BUILD_EXAMPLES_MAVEN |
| env: TASK=BUILD_EXAMPLES_BAZEL |
| env: TASK=CHECK_EXAMPLES_FORMAT |
| # Work around https://github.com/travis-ci/travis-ci/issues/2317 |
| # Allowing failures because osx builds are very slow. |
| - git log --oneline --decorate --graph -30 |
| - if \[ "$TASK" == "BUILD_EXAMPLES_BAZEL" \]; then |
| echo "deb [arch=amd64] http://storage.googleapis.com/bazel-apt stable jdk1.8" | sudo tee /etc/apt/sources.list.d/bazel.list ; |
| curl https://bazel.build/bazel-release.pub.gpg | sudo apt-key add - ; |
| sudo apt-get install bazel ; |
| # Skip Travis' default Gradle install step. See http://stackoverflow.com/a/26575080. |
| - if \[ "$TASK" == "BUILD" \] && \[ "$TRAVIS_JDK_VERSION" == "oraclejdk8" \] && \[ "$TRAVIS_OS_NAME" = linux \]; then |
| bash <(curl -s https://codecov.io/bash) ; |
| - rm -fr $HOME/.gradle/caches/modules-2/modules-2.lock |