1
0
mirror of https://github.com/moparisthebest/xeps synced 2024-11-21 08:45:04 -05:00

Check for external resources in CI

Fixes #212
This commit is contained in:
Sam Whited 2016-12-01 14:19:03 -06:00
parent 8e8af407a9
commit ff0ef6d212

View File

@ -42,6 +42,9 @@ $(OUTDIR)/%.html: %.xml $(XMLDEPS) dependencies
# TODO: After existing issues are worked out this and the ratcheting CI build # TODO: After existing issues are worked out this and the ratcheting CI build
# should be removed and become an error, not just a warning. # should be removed and become an error, not just a warning.
xmllint --nonet --noout --noent --loaddtd --valid "$<" || true xmllint --nonet --noout --noent --loaddtd --valid "$<" || true
# Check for non-data URIs
! xmllint --nonet --noout --noent --loaddtd --xpath "//img/@src[not(starts-with(., 'data:'))]" $< 2>/dev/null && true
# Actually build the HTML
xsltproc --path $(CURDIR) xep.xsl "$<" > "$@" && echo "Finished building $@" xsltproc --path $(CURDIR) xep.xsl "$<" > "$@" && echo "Finished building $@"
$(OUTDIR)/%.js: %.js $(OUTDIR)/%.js: %.js