Ignoring html5validator only appearing on Travis CI

This commit is contained in:
Lucas Cimon 2019-02-13 22:09:04 +01:00
parent e3a7bd2041
commit 36154b2616
No known key found for this signature in database
GPG Key ID: 08DA831E717571EE
2 changed files with 5 additions and 1 deletions

View File

@ -1,5 +1,9 @@
language: python
python: 3.6
cache:
directories:
- "$HOME/.cache/pip"
- node_modules
install:
- ./run.sh install
- ./run.sh install_dev

2
run.sh
View File

@ -33,7 +33,7 @@ test_ludochaordic () {
# Too many missing img alt attributes in thoses:
rm output/street-art-and-hedonogeolostism-in-london.html output/variante-2-joueurs-pour-bang-le-jeu-de-des.html
html5validator --root output/ --ignore-re='.*(Element "style" not allowed as child of element.*|Text not allowed in element "iframe" in this context.|Attribute "allow" not allowed on element "iframe" at this point.|No "p" element in scope but a "p" end tag seen.|End tag "p" implied, but there were open elements.|Unclosed element "a".|End tag "div" seen, but there were open elements.)' # issue with pelican renderer: <p> contains legally only inline-/inline-block-elements
html5validator --root output/ --ignore-re='.*(Element "eof" not allowed as child of element "p" in this context.|Element "style" not allowed as child of element.*|Text not allowed in element "iframe" in this context.|Attribute "allow" not allowed on element "iframe" at this point.|No "p" element in scope but a "p" end tag seen.|End tag "p" implied, but there were open elements.|Unclosed element "a".|End tag "div" seen, but there were open elements.)' # issue with pelican renderer: <p> contains legally only inline-/inline-block-elements
cp ../pelican-mg/.htmlhintrc output/
htmlhint output/