language: java
sudo: false
jdk:
- oraclejdk8
- openjdk7
script:
- |-
  if [ ${TRAVIS_EVENT_TYPE} = "push" -o ${TRAVIS_EVENT_TYPE} = "pull_request" ]; then
   mvn jetty:run & echo "Start a Jetty server on a background" ;
   mvn install -DskipTests=true || travis_terminate 1 ;
   mvn test -Dorg.slf4j.simpleLogger.defaultLogLevel=error -Dorg.slf4j.simpleLogger.log.org.apache.maven.cli.transfer.Slf4jMavenTransferListener=warn -B -Dsurefire.rerunFailingTestsCount=3 || travis_terminate 1 ;
   if [ ${TRAVIS_JDK_VERSION} = "oraclejdk8" ]; then
     mvn checkstyle:check || travis_terminate 1 ;
   fi
   mvn -pl !azure-samples package javadoc:aggregate -DskipTests=true || travis_terminate 1 ;
  else
   openssl aes-256-cbc -K $encrypted_25450b691aae_key -iv $encrypted_25450b691aae_iv -in my.azureauth.txt.enc -out my.azureauth.txt -d;
   export AZURE_TEST_MODE=RECORD || travis_terminate 1 ;
   export AZURE_AUTH_LOCATION=$TRAVIS_BUILD_DIR/my.azureauth.txt || travis_terminate 1 ;
   mvn -Dorg.slf4j.simpleLogger.defaultLogLevel=error || travis_terminate 1 ;
  fi




language: java
sudo: false
jdk:
- oraclejdk8
- openjdk7
script:
- |-
  if [ ${TRAVIS_EVENT_TYPE} = "push" -o ${TRAVIS_EVENT_TYPE} = "pull_request" ]; then
   LOG_PARAMS='-Dorg.slf4j.simpleLogger.defaultLogLevel=error -Dorg.slf4j.simpleLogger.log.org.apache.maven.cli.transfer.Slf4jMavenTransferListener=warn --batch-mode' ;
   mvn jetty:run & echo "Start a Jetty server on a background" ;
   mvn install -DskipTests=true $LOG_PARAMS || travis_terminate 1 ;
   if [ ${TRAVIS_JDK_VERSION} = "oraclejdk8" ]; then
     mvn checkstyle:check || travis_terminate 1 ;
   fi
   mvn -pl !azure-samples package javadoc:aggregate -DskipTests=true $LOG_PARAMS || travis_terminate 1 ;
   mvn test -Dsurefire.rerunFailingTestsCount=3 $LOG_PARAMS || travis_terminate 1 ;
  else
   openssl aes-256-cbc -K $encrypted_25450b691aae_key -iv $encrypted_25450b691aae_iv -in my.azureauth.txt.enc -out my.azureauth.txt -d;
   export AZURE_TEST_MODE=RECORD || travis_terminate 1 ;
   export AZURE_AUTH_LOCATION=$TRAVIS_BUILD_DIR/my.azureauth.txt || travis_terminate 1 ;
   mvn -Dorg.slf4j.simpleLogger.defaultLogLevel=error || travis_terminate 1 ;
  fi




Order changed: checkstyle goes first.
Order changed: checkstyle goes first.
