-
Notifications
You must be signed in to change notification settings - Fork 20
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #114 from OpenPEPPOL/2024-q4-dev
2024 q4 dev
- Loading branch information
Showing
3 changed files
with
53 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
#!/bin/sh | ||
|
||
PROJECT=$(dirname $(readlink -f "$0")) | ||
|
||
# Delete target folder if found | ||
if [ -e $PROJECT/target ]; then | ||
docker run --rm -i -v $PROJECT:/src alpine:3.6 rm -rf /src/target | ||
fi | ||
|
||
# Structure | ||
docker run --rm -i \ | ||
-v $PROJECT:/src \ | ||
-v $PROJECT/target:/target \ | ||
difi/vefa-structure:0.6.1 | ||
|
||
# Testing validation rules | ||
docker run --rm -i -v $PROJECT:/src anskaffelser/validator:2.1.0 build -x -t -n eu.peppol.poacc.upgrade.v3 -a rules -target target/validator-test /src | ||
|
||
# Schematron | ||
for sch in $PROJECT/rules/sch/*.sch; do | ||
docker run --rm -i -v $PROJECT:/src -v $PROJECT/target/schematron:/target klakegg/schematron prepare /src/rules/sch/$(basename $sch) /target/$(basename $sch) | ||
done | ||
|
||
# Fix ownership | ||
docker run --rm -i -v $PROJECT:/src alpine:3.6 chown -R $(id -g $USER).$(id -g $USER) /src/target | ||
|
||
sudo rm -rf $PROJECT/target/site/files/PEPPOLBIS-Upgrade-Schematron.zip | ||
sudo rm -rf $PROJECT/target/site/files/PEPPOLBIS-Examples.zip | ||
|
||
cd $PROJECT/target | ||
sudo zip -r site/files/PEPPOLBIS-Upgrade-Schematron.zip schematron/ | ||
|
||
cd $PROJECT | ||
sudo zip -r target/site/files/PEPPOLBIS-Examples.zip rules/examples | ||
|
||
# Guides | ||
docker run --rm -i -v $PROJECT:/documents -v $PROJECT/target:/target difi/asciidoctor | ||
|
||
# Fix ownership | ||
docker run --rm -i -v $PROJECT:/src alpine:3.6 chown -R $(id -g $USER).$(id -g $USER) /src/target |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters