forked from yegor256/cactoos
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.rultor.yml
33 lines (33 loc) · 1.02 KB
/
.rultor.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
docker:
image: yegor256/rultor-image:1.3
assets:
settings.xml: yegor256/home#assets/cactoos/settings.xml
pubring.gpg: yegor256/home#assets/pubring.gpg
secring.gpg: yegor256/home#assets/secring.gpg
architect:
- paulodamaso
- yegor256
install: |
sudo update-java-alternatives -s java-1.8.0-openjdk-amd64
pdd -f /dev/null
merge:
script: |
pdd -f /dev/null
mvn clean install -Pqulice --errors --settings ../settings.xml
mvn clean site -Psite --errors --settings ../settings.xml
deploy:
script: |
pdd -f /dev/null
mvn clean deploy -Pqulice --errors --settings ../settings.xml
release:
sensitive:
- settings.xml
script: |-
export GPG_TTY=$(tty)
gpg --import /home/r/pubring.gpg
gpg --allow-secret-key-import --no-tty --batch --import /home/r/secring.gpg
[[ "${tag}" =~ ^[0-9]+(\.[0-9]+)*$ ]] || exit -1
mvn versions:set "-DnewVersion=${tag}"
git commit -am "${tag}"
mvn clean deploy -P cactoos -Psonar -Pqulice -Psonatype --errors --settings ../settings.xml
rm -f settings.xml