language: java jdk: - oraclejdk8 cache: directories: - $HOME/.m2 branches: only: - master - /^release-.+$/ env: - MAVEN_OPTS="-Xmx1024m -XX:MaxPermSize=256m" before_install: - OLD_VERSION=`mvn help:evaluate -Dexpression=project.version 2>/dev/null | grep -v "^\["` - NEW_VERSION=${OLD_VERSION%-SNAPSHOT}-build-`printf %05d $TRAVIS_BUILD_NUMBER` - echo "Building version $NEW_VERSION" - mvn versions:set -DnewVersion=$NEW_VERSION script: > mvn -e test \ -Dteavm.junit.target=target/js-tests \ -Dteavm.junit.js.runner=htmlunit \ -Dteavm.junit.js.threads=1 \ -Dteavm.junit.optimized=true \ -Dteavm.junit.minified=true after_success: > if [ "${TRAVIS_PULL_REQUEST:-false}" != "false" ]; then mvn deploy --settings travis-settings.xml -P deploy-to-bintray fi after_script: - rm -rf $HOME/.m2/repository/org/teavm