2015-10-10 13:25:51 +08:00
|
|
|
language: java
|
|
|
|
jdk:
|
2015-10-10 13:55:22 +08:00
|
|
|
- oraclejdk8
|
|
|
|
cache:
|
|
|
|
directories:
|
|
|
|
- $HOME/.m2
|
2015-10-13 01:51:46 +08:00
|
|
|
branches:
|
|
|
|
only:
|
|
|
|
- master
|
|
|
|
- /^release-.+$/
|
2016-06-24 10:57:28 +08:00
|
|
|
env:
|
2016-06-24 11:10:37 +08:00
|
|
|
- MAVEN_OPTS="-Xmx1024m -XX:MaxPermSize=256m"
|
2017-02-17 02:37:42 +08:00
|
|
|
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: >
|
2016-06-24 11:10:37 +08:00
|
|
|
mvn -e test \
|
2016-06-24 10:23:41 +08:00
|
|
|
-Dteavm.junit.target=target/js-tests \
|
|
|
|
-Dteavm.junit.js.runner=htmlunit \
|
2016-11-04 18:21:01 +08:00
|
|
|
-Dteavm.junit.js.threads=1 \
|
|
|
|
-Dteavm.junit.optimized=true \
|
|
|
|
-Dteavm.junit.minified=true
|
2017-02-17 02:37:42 +08:00
|
|
|
after_success: >
|
|
|
|
if [ "${TRAVIS_PULL_REQUEST:-false}" != "false" ]; then
|
|
|
|
mvn deploy --settings travis-settings.xml -P deploy-to-bintray
|
|
|
|
fi
|
2015-10-10 13:55:22 +08:00
|
|
|
after_script:
|
2015-10-10 16:38:00 +08:00
|
|
|
- rm -rf $HOME/.m2/repository/org/teavm
|