forked from difi/sikker-digital-post-klient-java
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
24 lines (18 loc) · 903 Bytes
/
.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
dist: trusty
language: java
jdk:
- oraclejdk8
cache:
directories:
- $HOME/.m2
env:
global:
- secure: m7sMzcBvfteNPkw2i0C39d0sJooQc683YQnnnwyTA7GeCctLkblNZl4Cr0z1fHhEprZ+8XEh+jpZOerMnQMwdh1WoE3j8ftPKXkumyeIbNPRza1nj3Lga0UK+5sWYMGyjbjEN2J6e/+++Evx0xksxgb+xR/yzsIoUvQQjmeHNs0=
- secure: VC9+GA8Viioh1n/MLk1yWty86jlfMzReg6AUwmzfzSS9ZcUK9ZMFkS8MUN8iUuPx6Lhvyb2LAZ4labxwNk5s4Yuro+SiAmwWojduEns7jszYrLf+7YL5OcdpGZC1l/ISMJIQPnSh2dXv4ZUa+i43azx48NkVmEGFPaL/ej4fZuw=
install: true
before_script:
- cp .travis.maven.settings.xml ~/.m2/settings.xml
script:
- 'echo "TRAVIS_PULL_REQUEST value: $TRAVIS_PULL_REQUEST"'
- 'if [ "$TRAVIS_PULL_REQUEST" = "false" ]; then mvn clean deploy --update-snapshots; fi'
- 'if [ "$TRAVIS_PULL_REQUEST" != "false" ]; then mvn clean install --update-snapshots; fi' #Uses !="false" because $TRAVIS_PULL_REQUEST is the Pull Request number if such is the case.