language: java

jdk:
  - oraclejdk7
  - openjdk7
  - oraclejdk8

env:
  - GWT_VERSION=2.6.1
  - GWT_VERSION=2.7.0
  - GWT_VERSION=2.8.0-SNAPSHOT

install: mvn verify clean --fail-never --quiet -DskipTests=true -Dinvoker.skip=true
script: mvn verify -Dinvoker.streamLogs=true -Dinvoker.mavenOpts="-Djava.net.preferIPv4Stack=true" -DgwtVersion=$GWT_VERSION

after_success:
  - ci/deploy-snapshot.sh

notifications:
  email: false

sudo: false
cache:
  directories:
    - $HOME/.m2
    - target/it-repo


language: java

jdk:
  - oraclejdk7
  - openjdk7
  - oraclejdk8

env:
  - GWT_VERSION=2.6.1
  - GWT_VERSION=2.7.0
  - GWT_VERSION=2.8.0-SNAPSHOT

install: true
script: mvn verify -Dinvoker.streamLogs=true -Dinvoker.mavenOpts="-Djava.net.preferIPv4Stack=true" -DgwtVersion=$GWT_VERSION

after_success:
  - ci/deploy-snapshot.sh

notifications:
  email: false

sudo: false
cache:
  directories:
    - $HOME/.m2
    - target/it-repo


Speed up Travis builds by building only once per job
Speed up Travis builds by building only once per job

Because Maven doesn't really have a way to "install dependencies" or
"go offline" (not a reliable one anyway), we were building once without
running tests, then building again (running tests).
We now only build once, even if that means the build logs are littered
with "downloading / downloaded" lines.
