sudo: false

language: java

jdk:
  - oraclejdk8

before_install:
  # Travis sets this and it causes issues with workers.
  - unset _JAVA_OPTIONS
  # Not actually used since we aren't building/testing the Android version, but
  # Maven still needs an absolute path or it complains.
  - export ANDROID_HOME=/

install: mvn -B -Dorg.slf4j.simpleLogger.log.org.apache.maven.cli.transfer.Slf4jMavenTransferListener=warn install -U -DskipTests=true -am -pl caliper

script: mvn -B -Dorg.slf4j.simpleLogger.log.org.apache.maven.cli.transfer.Slf4jMavenTransferListener=warn verify -U -Dmaven.javadoc.skip=true -am -pl caliper

cache:
  directories:
  - $HOME/.m2

branches:
  only:
    - master
    - /^release.*$/

sudo: false

language: java

jdk:
  - oraclejdk8

before_install:
  # Travis sets this and it causes issues with workers.
  - unset _JAVA_OPTIONS
  # Not actually used since we aren't building/testing the Android version, but
  # Maven still needs an absolute path or it complains.
  - export ANDROID_HOME=/

install: mvn -B -Dorg.slf4j.simpleLogger.log.org.apache.maven.cli.transfer.Slf4jMavenTransferListener=warn install -U -DskipTests=true -am -pl caliper

script: mvn -B -Dorg.slf4j.simpleLogger.log.org.apache.maven.cli.transfer.Slf4jMavenTransferListener=warn clean verify -U -Dmaven.javadoc.skip=true -am -pl caliper

cache:
  directories:
  - $HOME/.m2

branches:
  only:
    - master
    - /^release.*$/

Change the "script:" command in Travis config to run "mvn clean verify" rather than just "mvn verify".
Change the "script:" command in Travis config to run "mvn clean verify" rather than just "mvn verify".

For whatever reason, when "mvn install" is run first and then "mvn verify" as a separate invocation, some tests fail with "java.lang.NoClassDefFoundError: com/google/caliper/runner/config/Loggin[]Loader_Factory".

This does mean that building the code happens twice, but that seems fine.

-------------
Created by MOE: https://github.com/google/moe
MOE_MIGRATED_REVID=188771011
