forked from bulldog2011/bigqueue
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
31 lines (27 loc) · 1005 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
sudo: false
language: java
jdk:
- openjdk11
cache:
directories:
- $HOME/.m2
## export GPG details
before_install:
# - echo -e "machine github.com\n login $GITHUB_USER\n password $GITHUB_PASSWORD" > $HOME/.netrc
- echo $GPG_SECRET_KEYS | base64 --decode | $GPG_EXECUTABLE --import
- echo $GPG_OWNERTRUST | base64 --decode | $GPG_EXECUTABLE --import-ownertrust
install:
- mvn -U --file pom.xml --settings .settings.xml test -Dmaven.javadoc.skip=true -Djava.security.egd=file:/dev/./urandom -Pall -B -V
deploy:
# deploy develop 1.0.x to oss
- provider: script
skip_cleanup: true
script: mvn --file pom.xml deploy -DskipTests=true -Djava.security.egd=file:/dev/./urandom -B -V --settings .settings.xml
on:
branch: 1.0.x
# Push release to oss
- provider: script
skip_cleanup: true
script: mvn --file pom.xml deploy -DskipTests=true -Djava.security.egd=file:/dev/./urandom -Prelease-sign-artifacts -B -V --settings .settings.xml
on:
tags: true