There’s a hard requirement for Java 8 here since html5validator is essentially a wrapper around vnu.jar.
This is roughly what your
.travis.yml file will look like:
language: 'ruby' sudo: false rvm: - '2.3.0' jdk: - 'oraclejdk8' install: - 'bundle install' - 'pip install --user html5validator' script: - 'bundle exec rake test' - 'bundle exec rake build' - 'html5validator --root public/'
jdk directive in the
.travis.yml file is a wrapper around the
jdk_switcher tool, which makes switching between Java’s quite painless!