Skip to content

Commit

Permalink
add travis to this repo
Browse files Browse the repository at this point in the history
  • Loading branch information
aviriel committed Sep 25, 2016
1 parent 4a2cb1a commit 0d7ee45
Showing 1 changed file with 43 additions and 0 deletions.
43 changes: 43 additions & 0 deletions .travis.yml
@@ -0,0 +1,43 @@
sudo: false

language: java
jdk:
- oraclejdk8

cache:
directories:
- $HOME/.m2
- $HOME/apache-maven-3.3.9

before_cache:
- rm -rf $HOME/.m2/repository/com/alvexcore

before_script:
- wget https://raw.githubusercontent.com/ITDSystems/alvex/master/scripts/mvn.sh -O ./mvnw
- wget https://raw.githubusercontent.com/ITDSystems/alvex/master/scripts/run_integration_tests.sh
- chmod +x mvnw
- chmod +x run_integration_tests.sh
- 'if [ "$TRAVIS_PULL_REQUEST" = "false" ]; then base64 -d <<< $MAVEN_DEPLOY_SETTINGS | tar -xz -C $HOME; fi'


script:
- rm -rf $HOME/.m2/repository/com/alvexcore
- ./mvnw -f repo/pom.xml clean package
- ./mvnw -f repo/pom.xml clean package -P make-jar
- ./mvnw -f share/pom.xml clean package
- ./mvnw -f share/pom.xml clean package -P make-jar
- ./run_integration_tests.sh repo
- ./run_integration_tests.sh share

after_success:
- 'if [ "$TRAVIS_PULL_REQUEST" = "false" ]; then ./mvnw -f repo/pom.xml deploy -P make-jar; fi'
- 'if [ "$TRAVIS_PULL_REQUEST" = "false" ]; then ./mvnw -f share/pom.xml deploy -P make-jar; fi'



notifications:
email:
recipients:
- alvex-build@itdhq.com
on_success: change
on_failure: always

0 comments on commit 0d7ee45

Please sign in to comment.