11767c5feSopenharmony_cilanguage: java 21767c5feSopenharmony_cibefore_install: 31767c5feSopenharmony_ci- sudo apt-get -qq update 41767c5feSopenharmony_ci# ant-optional is needed for ant junit. This used to be part of the default 51767c5feSopenharmony_ci# Travis image. 61767c5feSopenharmony_ci- sudo apt-get install ant-optional 71767c5feSopenharmony_ci- npm install -g is-ascii-safe-cli 81767c5feSopenharmony_ciinstall: 91767c5feSopenharmony_ci# Invoke the "travis" profile during Maven steps; see <profile> in pom.xml 101767c5feSopenharmony_ci# files. This is configured not to build the "cpp-build" module. 111767c5feSopenharmony_ci# The "mvn install" command will run by default during the "install" phase by 121767c5feSopenharmony_ci# Travis, without the profile flag. Here we customize the install phase to use 131767c5feSopenharmony_ci# the relevant profile. If we want to build "cpp-build" with Travis CI it's safe 141767c5feSopenharmony_ci# to remove this line entirely. 151767c5feSopenharmony_ci- mvn install -P travis -DskipTests=true -Dmaven.javadoc.skip=true -B -V 161767c5feSopenharmony_ciscript: 171767c5feSopenharmony_ci- mvn -P travis test 181767c5feSopenharmony_ci- ant clean -f java/build.xml && ant jar -f java/build.xml 191767c5feSopenharmony_ci- ant junit -f java/build.xml 201767c5feSopenharmony_ci- find . -name '*.js' ! -name '*_test.js' | xargs is-ascii-safe 21