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

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

Disable Travis parallel building to reduce memory usage
Disable Travis parallel building to reduce memory usage

We were seeing errors on Travis like:
> Process 'Gradle Test Executor 2' finished with non-zero exit value 137

That doesn't make much sense, other than maybe the OOM killer killing
our processes. Turning off parallel execution seemed to fix the problem,
so we'll just assume memory was the actual problem and doing fewer
things in parallel reduces our maximum memory usage.

Travis documentation seems to agree with that being a likely cause:
http://docs.travis-ci.com/user/common-build-problems/#My-build-script-is-killed-without-any-error
