Skip to content

Commit 6f517e4

Browse files
committed
polystat#227: rultor modification
1 parent 4522b48 commit 6f517e4

File tree

1 file changed

+23
-11
lines changed

1 file changed

+23
-11
lines changed

.rultor.yml

Lines changed: 23 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
docker:
2-
image: "iammaxim/j2eo:latest"
3-
as_root: true
2+
image: "yegor256/rultor-image:1.9.1"
43
architect:
54
- yegor256
65
assets:
@@ -9,17 +8,30 @@ assets:
98
secring.gpg: yegor256/polystat-secrets#secring.gpg
109
docker-password: yegor256/polystat-secrets#docker-password
1110
install: |
12-
cp ../gradle.properties .
13-
wget https://www.antlr.org/download/antlr-4.9.2-complete.jar
11+
pdd --file=/dev/null
1412
merge:
1513
script: |
16-
gradle build --info
14+
mvn clean install --errors -Dstyle.color=never
1715
release:
1816
script: |-
1917
[[ "${tag}" =~ ^[0-9]+\.[0-9]+\.[0-9]+$ ]] || exit -1
20-
gradle build fatJar publish -x test --info -Dcandidates=false -PmvnPublicationVersion=${tag} -Dsigning.secretKeyRingFile=/home/r/secring.gpg
21-
mv "J2EO-${tag}.jar" j2eo.jar
22-
image=yegor256/j2eo
23-
sudo docker build "$(pwd)" --tag "${image}:${tag}"
24-
cat ../docker-password | sudo docker login --password-stdin --username yegor256
25-
sudo docker push "${image}:${tag}"
18+
mvn versions:set "-DnewVersion=${tag}" -Dstyle.color=never
19+
git commit -am "${tag}"
20+
mvn clean install -Dinvoker.skip
21+
mvn clean deploy -Ppolystat -Psonatype --errors --settings ../settings.xml -Dstyle.color=never
22+
mkdir /tmp/polystat
23+
cp -R src/main/eo /tmp/polystat/objects
24+
cp -R src/test/eo /tmp/polystat/tests
25+
branch=$(git rev-parse --abbrev-ref HEAD)
26+
git checkout gh-pages
27+
git reset --hard
28+
sudo git config --global --add safe.directory "$(pwd)"
29+
sudo /bin/bash -c "cd '$(pwd)'; git clean -fd"
30+
rm -rf polystat
31+
cp -R /tmp/polystat .
32+
find polystat -name '*.eo' | xargs sed -i "s/0\.0\.0/${tag}/g"
33+
git add polystat
34+
find polystat -name '*.eo' > polystat.lst
35+
git add polystat.lst
36+
git commit -am "polystat ${tag}"
37+
git checkout "${branch}"

0 commit comments

Comments
 (0)