forked from zapr-oss/druidry
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
28 lines (22 loc) · 918 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
language: java
cache:
directories:
- $HOME/.m2
#before_install:
# - echo $GPG_SECRET_KEYS | base64 --decode | $GPG_EXECUTABLE --import
# - echo $GPG_OWNERTRUST | base64 --decode | $GPG_EXECUTABLE --import-ownertrust
install:
mvn --settings .maven.xml install -DskipTests=true -Dgpg.skip -Dmaven.javadoc.skip=true -B -V
#script:
# mvn clean deploy --settings .maven.xml -DskipTests=true -B -U -Prelease
before_deploy:
- echo $GPG_SECRET_KEYS | base64 --decode | $GPG_EXECUTABLE --import
- echo $GPG_OWNERTRUST | base64 --decode | $GPG_EXECUTABLE --import-ownertrust
- mvn help:evaluate -N -Dexpression=project.version|grep -v '\['
- export project_version=$(mvn help:evaluate -N -Dexpression=project.version|grep -v '\[')
deploy:
provider: script
script: mvn clean deploy --settings .maven.xml -DskipTests=true -B -U -Prelease
skip_cleanup: true
on:
branch: master