forked from objectionary/eo
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.rultor.yml
77 lines (75 loc) · 2.99 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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
# The MIT License (MIT)
#
# Copyright (c) 2016-2024 Objectionary.com
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal
# in the Software without restriction, including without limitation the rights
# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
# copies of the Software, and to permit persons to whom the Software is
# furnished to do so, subject to the following conditions:
#
# The above copyright notice and this permission notice shall be included
# in all copies or substantial portions of the Software.
#
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
# FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT. IN NO EVENT SHALL THE
# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
# SOFTWARE.
---
architect:
- yegor256
ec2:
type: t2.2xlarge
docker:
image: yegor256/rultor-image:1.23.1
assets:
settings.xml: yegor256/objectionary-secrets#settings.xml
pubring.gpg: yegor256/objectionary-secrets#pubring.gpg
secring.gpg: yegor256/objectionary-secrets#secring.gpg
install: |
sudo apt-get install -y python3-pygments
sudo pip3 install pygments
javac -version
pdd --file=/dev/null
gem install pdd
gem install texsc:0.6.0
gem install texqc:0.6.0
merge:
script: |
mvn clean install -Pqulice --errors -Dstyle.color=never
release:
pre: false
script: |-
[[ "${tag}" =~ ^[0-9]+\.[0-9]+\.[0-9]+$ ]] || exit -1
mvn versions:set "-DnewVersion=${tag}" -Dstyle.color=never
git commit -am "${tag}"
mvn clean install -DskipTests -Dinvoker.skip
mvn clean deploy -DskipTests -Pobjectionary -Psonatype --errors --settings ../settings.xml -Dstyle.color=never
mkdir /tmp/objectionary
cp -R eo-runtime/src/main/eo /tmp/objectionary/objects
cp -R eo-runtime/src/test/eo /tmp/objectionary/tests
cp eo-parser/src/main/resources/XMIR.xsd /tmp
branch=$(git rev-parse --abbrev-ref HEAD)
git checkout gh-pages
git reset --hard
sudo git config --global --add safe.directory "$(pwd)"
sudo /bin/bash -c "cd '$(pwd)'; git clean -fd"
cp /tmp/XMIR.xsd .
sed -i "s|SNAPSHOT|${tag}|" XMIR.xsd
mkdir -p xsd
cp XMIR.xsd "xsd/XMIR-${tag}.xsd"
git add XMIR.xsd "xsd/XMIR-${tag}.xsd"
git commit -am "XMIR XSD ${tag}"
rm -rf objectionary
cp -R /tmp/objectionary .
find objectionary -name '*.eo' | xargs sed -i "s/jvm org.eolang:eo-runtime:0\.0\.0/jvm org.eolang:eo-runtime:${tag}/g"
find objectionary -name '*.eo' | xargs sed -i "s/version 0\.0\.0/version ${tag}/g"
git add objectionary
find objectionary -name '*.eo' > objectionary.lst
git add objectionary.lst
git commit -am "objectionary ${tag}"
git checkout "${branch}"