Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Mvn build #198

Open
wants to merge 28 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
28 commits
Select commit Hold shift + click to select a range
1412f2e
slight gitignore modification
includealex Oct 6, 2022
f04fd1a
src/pom initial
includealex Oct 6, 2022
2ffe4ea
mvn-build added parsing for antlr
includealex Oct 13, 2022
1b68e36
generating antlr files in target directory
includealex Oct 13, 2022
c078f50
changed generation format
includealex Oct 13, 2022
580d0e6
TreeMappings.kt fixed
includealex Oct 13, 2022
4fd05ff
added CI management with bot rultor
includealex Oct 13, 2022
6e11d66
mvn-build: added visibility for classes generated in target/ dir
includealex Oct 23, 2022
ae81e8d
slight modification of main and TreeMappings
includealex Oct 23, 2022
e54136e
minor fix
includealex Oct 23, 2022
3ff3611
slight modification
includealex Oct 23, 2022
90b2eae
mvn-build: added running of tests
includealex Nov 3, 2022
9c1de1f
#mvn-build: modified testing
includealex Nov 3, 2022
7b2e6f6
rultor change
includealex Nov 8, 2022
bba569f
some checks removed
includealex Nov 10, 2022
09947d8
merge with master
includealex Nov 10, 2022
e3fc72a
excluded start-imports
includealex Nov 10, 2022
f3d621d
removed conflicts
includealex Nov 10, 2022
70036ca
#224: excluded wildcard imports
includealex Nov 12, 2022
e9ee0c9
removed unused import
includealex Nov 12, 2022
052d03a
removed wildcard imports
includealex Nov 12, 2022
8a1e0da
created main class
includealex Nov 18, 2022
bf6159c
well-working with .jar files
includealex Nov 19, 2022
a7f6b49
merge with master
includealex Nov 19, 2022
1f11980
assembly
includealex Nov 20, 2022
04eb184
empty line
includealex Nov 21, 2022
f48a91c
removed empty line
includealex Nov 21, 2022
7db76d0
main class jvm static
includealex Nov 24, 2022
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
91 changes: 0 additions & 91 deletions .github/workflows/gradle-build.yml

This file was deleted.

5 changes: 2 additions & 3 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -8,15 +8,13 @@ compile_and_run_tests.bat
output.eo
output_eo
polystat_check
*.jar
/hadoop/
/output_hadoop/
/bin
/project
.metals/
.vscode
hadoop*
J2EO*.jar
j2eo-data
/src/main/java/org/polystat/j2eo/antlrParser/*
gradlew
Expand All @@ -26,4 +24,5 @@ target
.classpath
.project
.settings/
ktlint
ktlint
src/**/autogenerated
34 changes: 23 additions & 11 deletions .rultor.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
docker:
image: "iammaxim/j2eo:latest"
as_root: true
image: "yegor256/rultor-image:1.9.1"
architect:
- yegor256
assets:
Expand All @@ -9,17 +8,30 @@ assets:
secring.gpg: yegor256/polystat-secrets#secring.gpg
docker-password: yegor256/polystat-secrets#docker-password
install: |
cp ../gradle.properties .
wget https://www.antlr.org/download/antlr-4.9.2-complete.jar
pdd --file=/dev/null
merge:
script: |
gradle build --info
mvn clean install --errors -Dstyle.color=never
release:
script: |-
[[ "${tag}" =~ ^[0-9]+\.[0-9]+\.[0-9]+$ ]] || exit -1
gradle build fatJar publish -x test --info -Dcandidates=false -PmvnPublicationVersion=${tag} -Dsigning.secretKeyRingFile=/home/r/secring.gpg
mv "J2EO-${tag}.jar" j2eo.jar
image=yegor256/j2eo
sudo docker build "$(pwd)" --tag "${image}:${tag}"
cat ../docker-password | sudo docker login --password-stdin --username yegor256
sudo docker push "${image}:${tag}"
mvn versions:set "-DnewVersion=${tag}" -Dstyle.color=never
git commit -am "${tag}"
mvn clean install -Dinvoker.skip
mvn clean deploy -Ppolystat -Psonatype --errors --settings ../settings.xml -Dstyle.color=never
mkdir /tmp/polystat
cp -R src/main/eo /tmp/polystat/objects
cp -R src/test/eo /tmp/polystat/tests
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"
rm -rf polystat
cp -R /tmp/polystat .
find polystat -name '*.eo' | xargs sed -i "s/0\.0\.0/${tag}/g"
git add polystat
find polystat -name '*.eo' > polystat.lst
git add polystat.lst
git commit -am "polystat ${tag}"
git checkout "${branch}"
Loading