forked from yegor256/cactoos
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.rultor.yml
25 lines (25 loc) · 838 Bytes
/
.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
docker:
image: yegor256/rultor-image:1.9.1
assets:
settings.xml: yegor256/home#assets/cactoos/settings.xml
pubring.gpg: yegor256/home#assets/pubring.gpg
secring.gpg: yegor256/home#assets/secring.gpg
architect:
- victornoel
- yegor256
install: |
pdd -f /dev/null
merge:
script: |
mvn clean install -Pqulice --errors --settings ../settings.xml
mvn clean site -Psite --errors --settings ../settings.xml
release:
sensitive:
- settings.xml
script: |-
[[ "${tag}" =~ ^[0-9]+\.[0-9]+\.[0-9]+$ ]] || exit -1
gpg --import /home/r/pubring.gpg
gpg --allow-secret-key-import --no-tty --batch --import /home/r/secring.gpg
mvn versions:set "-DnewVersion=${tag}" --settings ../settings.xml
git commit -am "${tag}"
mvn clean deploy -Pcactoos -Pqulice -Psonatype --errors --settings ../settings.xml