teavm/.travis.yml

29 lines
824 B
YAML
Raw Normal View History

2015-10-10 13:25:51 +08:00
language: java
jdk:
- oraclejdk8
cache:
directories:
- $HOME/.m2
branches:
only:
- master
- /^release-.+$/
env:
- MAVEN_OPTS="-Xmx1024m -XX:MaxPermSize=256m"
before_install:
- OLD_VERSION=`mvn org.apache.maven.plugins:maven-help-plugin:2.1.1:evaluate -Dexpression=project.version`
- NEW_VERSION=${OLD_VERSION%-SNAPSHOT}-build-$TRAVIS_BUILD_NUMBER
- mvn versions:set -DnewVersion=$NEW_VERSION
2015-10-10 16:38:00 +08:00
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:
2015-10-10 16:38:00 +08:00
- rm -rf $HOME/.m2/repository/org/teavm