Skip to content

Commit

Permalink
Merge pull request #151 from mjakubicek/master
Browse files Browse the repository at this point in the history
CI/build improvements
  • Loading branch information
mjakubicek authored Sep 6, 2024
2 parents 39c0786 + 5a26224 commit 75feca9
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 3 deletions.
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

0 comments on commit 75feca9

Please sign in to comment.