1sudo: false 2 3language: java 4 5matrix: 6 fast_finish: true 7 include: 8 - jdk: openjdk8 9 env: TASK=BUILD 10 os: linux 11 12 - jdk: oraclejdk9 13 env: TASK=BUILD 14 os: linux 15 16 - jdk: openjdk10 17 env: TASK=BUILD 18 os: linux 19 20# TODO(songy23): fix JDK 11 build 21# - jdk: openjdk11 22# env: TASK=BUILD 23# os: linux 24 25 - jdk: openjdk8 26 env: TASK=CHECKER_FRAMEWORK 27 os: linux 28 29 - env: TASK=CHECK_GIT_HISTORY 30 os: linux 31 32 # Build example projects last, since they are affected by fewer pull requests. 33 - jdk: openjdk8 34 env: TASK=BUILD_EXAMPLES_GRADLE 35 os: linux 36 37 - jdk: openjdk8 38 env: TASK=BUILD_EXAMPLES_MAVEN 39 os: linux 40 41 # Work around https://github.com/travis-ci/travis-ci/issues/2317 42 - env: TASK=BUILD 43 # Set the java version to 1.8 until we fix the build for java10. 44 osx_image: xcode9.3 45 os: osx 46 47 allow_failures: 48 # Allowing failures because osx builds are very slow. 49 - env: TASK=BUILD 50 os: osx 51 52before_install: 53 - git log --oneline --decorate --graph -30 54 55# Skip Travis' default Gradle install step. See http://stackoverflow.com/a/26575080. 56install: true 57 58script: 59 - buildscripts/travis_script 60 61after_success: 62 - if \[ "$TASK" == "BUILD" \] && \[ "$TRAVIS_JDK_VERSION" == "openjdk8" \] && \[ "$TRAVIS_OS_NAME" = linux \]; then 63 bash <(curl -s https://codecov.io/bash) ; 64 fi 65 66before_cache: 67 - rm -fr $HOME/.gradle/caches/modules-2/modules-2.lock 68 69cache: 70 directories: 71 - $HOME/.gradle 72 - $HOME/.gradle/caches/ 73 - $HOME/.gradle/wrapper/ 74