forked from Azure/azure-sdk-for-java
-
Notifications
You must be signed in to change notification settings - Fork 1
/
.travis.yml
26 lines (23 loc) · 1.2 KB
/
.travis.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
language: java
sudo: required
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 "==> Starting a Jetty server on the background ==" ;
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 install -DskipTests=true $LOG_PARAMS || travis_terminate 1 ;
echo '==> Starting mvn test ===' ;
mvn test -Dsurefire.rerunFailingTestsCount=3 $LOG_PARAMS -Dparallel=classes -DthreadCount=2 -DforkCount=1C || 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