1language: java 2before_install: 3- sudo apt-get -qq update 4# ant-optional is needed for ant junit. This used to be part of the default 5# Travis image. 6- sudo apt-get install ant-optional 7- npm install -g is-ascii-safe-cli 8install: 9# Invoke the "travis" profile during Maven steps; see <profile> in pom.xml 10# files. This is configured not to build the "cpp-build" module. 11# The "mvn install" command will run by default during the "install" phase by 12# Travis, without the profile flag. Here we customize the install phase to use 13# the relevant profile. If we want to build "cpp-build" with Travis CI it's safe 14# to remove this line entirely. 15- mvn install -P travis -DskipTests=true -Dmaven.javadoc.skip=true -B -V 16script: 17- mvn -P travis test 18- ant clean -f java/build.xml && ant jar -f java/build.xml 19- ant junit -f java/build.xml 20- find . -name '*.js' ! -name '*_test.js' | xargs is-ascii-safe 21