I got Travis working with html5validator, which is now reporting plenty of errors on my site. Here is the .travis.yml
file:
language: python
python:
- "3.6"
os: linux
addons:
apt:
packages:
- openjdk-8-jre # install Java8 as required by vnu.jar
install:
- sudo snap install hugo --channel=extended
- pip install html5validator
script:
- hugo
- html5validator --root public/ --also-check-css
I’ll have to evaluate whether these errors are actually worth fixing, but that is a separate question.