mirror of
https://github.com/moparisthebest/xeps
synced 2024-11-24 02:02:16 -05:00
Add ratcheting DTD checking to CI
This commit is contained in:
parent
e14fc079f2
commit
e9a10cd2c3
10
.travis.yml
10
.travis.yml
@ -1,6 +1,12 @@
|
||||
script: make all
|
||||
|
||||
addons:
|
||||
apt:
|
||||
packages:
|
||||
- xsltproc
|
||||
- libxml2-utils
|
||||
before_install:
|
||||
- wget -O git-ratchet https://github.com/iangrunert/git-ratchet/releases/download/v0.3.1/linux_amd64_git-ratchet
|
||||
- chmod +x git-ratchet
|
||||
- git fetch https://github.com/xsf/xeps.git refs/notes/*:refs/notes/*
|
||||
script:
|
||||
- make all
|
||||
- echo "lint,$(xmllint --nonet --noout --noent --loaddtd --valid *.xml 2>&1 | wc -l)" | ./git-ratchet check -v
|
||||
|
3
Makefile
3
Makefile
@ -39,6 +39,9 @@ xep-%.html: $(OUTDIR)/xep-%.html ;
|
||||
dependencies: $(OUTDIR)/prettify.css $(OUTDIR)/prettify.js $(OUTDIR)/xmpp.css ;
|
||||
|
||||
$(OUTDIR)/%.html: %.xml $(XMLDEPS) dependencies
|
||||
# TODO: After existing issues are worked out this and the ratcheting CI build
|
||||
# should be removed and become an error, not just a warning.
|
||||
xmllint --nonet --noout --noent --loaddtd --valid "$<" || true
|
||||
xsltproc --path $(CURDIR) xep.xsl "$<" > "$@" && echo "Finished building $@"
|
||||
|
||||
$(OUTDIR)/%.js: %.js
|
||||
|
Loading…
Reference in New Issue
Block a user