sudo: false

language: java

env:
  global:
    - LDFLAGS=-L/tmp/proto3-a2/lib
    - CXXFLAGS=-I/tmp/proto3-a2/include
    - LD_LIBRARY_PATH=/tmp/proto3-a2/lib
    - PATH=/tmp/proto3-a2/bin:$PATH

before_install:
  - buildscripts/make_dependencies.sh # build protoc into /tmp/proto3-a2
  - mkdir -p $HOME/.gradle
  - echo "checkstyle.ignoreFailures=false" >> $HOME/.gradle/gradle.properties

jdk:
  - oraclejdk8

os:
  - linux

branches:
  only:
    - master

notifications:
  email: false

cache:
  directories:
    - /tmp/proto3-a2
    - $HOME/.m2

sudo: false

language: java

env:
  global:
    - LDFLAGS=-L/tmp/proto3-a2/lib
    - CXXFLAGS=-I/tmp/proto3-a2/include
    - LD_LIBRARY_PATH=/tmp/proto3-a2/lib
    - PATH=/tmp/proto3-a2/bin:$PATH

before_install:
  - buildscripts/make_dependencies.sh # build protoc into /tmp/proto3-a2
  - mkdir -p $HOME/.gradle
  - echo "checkstyle.ignoreFailures=false" >> $HOME/.gradle/gradle.properties
  - echo "org.gradle.parallel=true" >> $HOME/.gradle/gradle.properties

jdk:
  - oraclejdk8

os:
  - linux

branches:
  only:
    - master

notifications:
  email: false

cache:
  directories:
    - /tmp/proto3-a2
    - $HOME/.m2

Enable parallel Gradle builds for Travis
Enable parallel Gradle builds for Travis

Parallel doesn't mix well with deployment, so if that becomes part of
Travis, we would need to pass -Dorg.gradle.parallel=false to the gradle
command line. But otherwise parallel builds have been solid.
