Add Travis CI builds to pre-jdk8 tests.