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

CI/build improvements #151

Merged
merged 2 commits into from
Sep 6, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
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
2 changes: 1 addition & 1 deletion .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ jobs:
run: |
echo ttf-mscorefonts-installer msttcorefonts/accepted-mscorefonts-eula select true | sudo debconf-set-selections
sudo apt-get update
sudo apt-get install xsltproc fop xmlstarlet ttf-mscorefonts-installer graphviz
sudo apt-get install xsltproc fop xmlstarlet ttf-mscorefonts-installer graphviz libxml2-utils
sudo fc-cache -f
- name: Make XML, HTML and PDF
run: make html pdf
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ jobs:
run: |
echo ttf-mscorefonts-installer msttcorefonts/accepted-mscorefonts-eula select true | sudo debconf-set-selections
sudo apt-get update
sudo apt-get install xsltproc fop xmlstarlet ttf-mscorefonts-installer graphviz
sudo apt-get install xsltproc fop xmlstarlet ttf-mscorefonts-installer graphviz libxml2-utils
sudo fc-cache -f
- name: Make XML, HTML and PDF
run: make html pdf
6 changes: 5 additions & 1 deletion dmlex-v1.0/specification/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ dmlex-$(VERSION).html: dmlex-$(VERSION).xml

dmlex-$(VERSION).xml: dmlex.xml docbook/dbgenent.mod dmlex_uml.svg $(SOURCE_XML)
./merge.sh $@
xmllint --valid --noout $@

dmlex_uml.pdf: dmlex.dot
dot -Tpdf < $< > $@
Expand Down Expand Up @@ -44,6 +45,9 @@ xmldep:
jsondep:
@python -c 'import jsonschema' 2>/dev/null || { echo "Python jsonschema module is not installed, cannot validate JSON examples."; exit 2; }

rdfdep:
@python -c 'import pyshacl' 2>/dev/null || { echo "Python pyshacl module is not installed, cannot validate JSON examples."; exit 2; }

validate_xml: xmldep validate_xml.py schemas/XML/dmlex.xsd schemas/XML/dmlex_no-crosslingual.xsd
@for xmlexample in examples/examples/source/*[0-9].xml; do \
echo validating "$$xmlexample"; \
Expand All @@ -70,7 +74,7 @@ validate_json: jsondep validate_json.py schemas/JSON/dmlex.schema.json schemas/J
} \
done

validate_rdf: jsondep schemas/RDF/dmlex.shacl
validate_rdf: rdfdep schemas/RDF/dmlex.shacl
@for rdfexample in examples/examples/source/*[0-9].rdf; do \
echo validating "$$rdfexample"; \
python -m pyshacl -s schemas/RDF/dmlex.shacl -df turtle $$rdfexample -e schemas/RDF/dmlex.ttl -i rdfs \
Expand Down
Loading