-
Notifications
You must be signed in to change notification settings - Fork 2
/
.travis.yml
executable file
·43 lines (33 loc) · 1.22 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
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
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:
on_success: change
on_failure: always