forked from adorsys/xs2a
-
Notifications
You must be signed in to change notification settings - Fork 1
/
.travis.yml
40 lines (31 loc) · 994 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
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
---
language: java
jdk:
- oraclejdk8
git:
submodules: false
# Schritte um Build-Dependencies herunterladen
before_install:
- mvn --version
install:
- mvn -DskipTests -Dmaven.javadoc.skip=true -B -V -U install
# Schritte um Build zu bauen
before_script:
- mvn --version
script:
- mvn -B -V clean install
- mvn -B -V javadoc:javadoc
- mvn -B -V pmd:check
# Schritte um Release zu veröffentlichen
before_deploy:
- echo $GPG_SECRET_KEY | base64 --decode | $GPG_EXECUTABLE --import
- echo $GPG_OWNERTRUST | base64 --decode | $GPG_EXECUTABLE --import-ownertrust
deploy:
-
skip_cleanup: true
provider: script
script: mvn --settings scripts/mvn-release-settings.xml -Prelease -DskipTests -B -U deploy
on:
tags: true
# matches: X.Y.Z, X.Y.Z-A, X.Y.Z-RCA, X.Y.Z-A-B.C.D, X.Y.Z-A-B.C.D-E, X.Y.Z-RCA-B.C.D-E
condition: "$TRAVIS_TAG =~ ^([[:digit:]]+\\.)+[[:digit:]]+(-(RC)?[[:digit:]]+)?(-([[:digit:]]+\\.)+[[:digit:]]+(-[[:digit:]]+)?)?$"