eagler-teavm-fork/.travis.yml
2017-02-16 22:03:00 +03:00

29 lines
808 B
YAML

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-$TRAVIS_BUILD_NUMBER
- 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