-
Notifications
You must be signed in to change notification settings - Fork 5
/
.rultor.yml
36 lines (34 loc) · 1.42 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
34
35
36
docker:
image: yegor256/rultor-image:1.21.0
assets:
settings.xml: yegor256/polystat-secrets#settings.xml
pubring.gpg: yegor256/polystat-secrets#pubring.gpg
secring.gpg: yegor256/polystat-secrets#secring.gpg
docker-password: yegor256/polystat-secrets#docker-password
install: |-
sudo update-java-alternatives --set /usr/lib/jvm/java-1.17.0-openjdk-amd64
export JAVA_HOME=/usr/lib/jvm/java-17
merge:
script: mvn clean install
deploy:
script: mvn clean install
release:
script: |-
[[ "${tag}" =~ ^[0-9]+\.[0-9]+\.[0-9]+$ ]] || exit -1
echo "Amount of free memory:"
free
ulimit -a
wget https://download.java.net/java/GA/jdk14.0.1/664493ef4a6946b186ff29eb326336a2/7/GPL/openjdk-14.0.1_linux-x64_bin.tar.gz
tar x -z < openjdk-14.0.1_linux-x64_bin.tar.gz
PATH="$PWD/jdk-14.0.1/bin/:$PATH"
export JAVA_HOME="$PWD/jdk-14.0.1/"
mvn versions:set "-DnewVersion=${tag}" -Dstyle.color=never
git commit -am "${tag}"
mvn clean install -Dinvoker.skip -DskipTests=true
mvn clean deploy -Ppolystat -Psonatype --errors --settings ../settings.xml -Dstyle.color=never -Dit.test=DjangoIT
mv "transpiler/target/transpiler-${tag}-jar-with-dependencies.jar" py2eo.jar
image=yegor256/py2eo
sudo docker build "$(pwd)" --tag "${image}:${tag}"
cat ../docker-password | sudo docker login --password-stdin --username yegor256
sudo docker push "${image}:${tag}"
sudo docker rmi "${image}:${tag}"