-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path.travis.yml
47 lines (41 loc) · 1.42 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
44
45
46
47
language: java
jdk: openjdk11
## export GPG details
before_install:
- if [ ! -z "$GPG_SECRET_KEYS" ]; then echo $GPG_SECRET_KEYS | base64 --decode | $GPG_EXECUTABLE --import; fi
- if [ ! -z "$GPG_OWNERTRUST" ]; then echo $GPG_OWNERTRUST | base64 --decode | $GPG_EXECUTABLE --import-ownertrust; fi
install:
mvn --settings .travis/settings.xml install -DskipTests=true -Dgpg.skip -Dmaven.javadoc.skip=true -B -V
## Get the project version
before_deploy:
- mvn help:evaluate -N -Dexpression=project.version|grep -v '\['
- export project_version=$(mvn help:evaluate -N -Dexpression=project.version|grep -v '\[')
## Create release
deploy:
-
provider: script
script: .travis/deploy.sh
skip_cleanup: true
#repo condition, to avoid that forks of my repository accidently try to publish things to maven
on:
repo: agrica/ppa-spring-boot
branch: master
-
provider: script
script: .travis/deploy.sh
skip_cleanup: true
#repo condition, to avoid that forks of my repository accidently try to publish things to maven
on:
repo: agrica/ppa-spring-boot
tags: true
condition: $TRAVIS_TAG =~ ^ossrh-.*$
cache:
directories:
- ~/.m2/repository
notifications:
email:
recipients:
on_success: always # default: change
on_failure: always # default: always