-
Notifications
You must be signed in to change notification settings - Fork 21
/
.travis.yml
33 lines (33 loc) · 1.02 KB
/
.travis.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
language: java
jdk:
- oraclejdk11
cache:
directories:
- $HOME/.m2
branches:
only:
- master
- /^release-.+$/
- /^dev-.+/
before_install:
- mvn help:evaluate -Dexpression=project.version
- OLD_VERSION=`mvn help:evaluate -Dexpression=project.version 2>/dev/null | grep -Ev "(^\[|Download\w+:)"`
- NEW_VERSION=${OLD_VERSION%-SNAPSHOT}-dev-`printf %d $TRAVIS_BUILD_NUMBER`
- echo "Building version $NEW_VERSION"
- mvn versions:set -DnewVersion="$NEW_VERSION"
install:
- mvn install -DskipTests=true -Dmaven.javadoc.skip=true -B -V
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:-unknown}" == "false" && $TRAVIS_BRANCH == dev-* ]] ; then
export NEW_VERSION
mvn deploy -P with-example -P deploy-to-bintray -DskipTests --settings travis-settings.xml
fi
after_script:
- rm -rf $HOME/.m2/repository/org/teavm