eagler-teavm-fork/.travis.yml

67 lines
1.8 KiB
YAML
Raw Normal View History

2015-10-09 22:25:51 -07:00
language: java
2017-04-22 08:57:06 -07:00
sudo: false
addons:
firefox: "53.0"
2015-10-09 22:25:51 -07:00
jdk:
- oraclejdk8
cache:
directories:
- $HOME/.m2
- $HOME/.node_modules
- $HOME/.chromium_dist
branches:
only:
- master
- travis
- /^release-.+$/
2017-02-16 11:55:30 -08:00
- /^dev-.+/
before_install:
- nvm install 7
2018-01-02 10:21:06 -08:00
- OLD_VERSION=`mvn help:evaluate -Dexpression=project.version 2>/dev/null | grep -Ev "(^\[|Download)"`
- BASE_VERSION=${OLD_VERSION%-SNAPSHOT}
- NEW_VERSION=${BASE_VERSION}-dev-`printf %d $TRAVIS_BUILD_NUMBER`
2018-01-10 13:21:18 -08:00
- ECLIPSE_VERSION=${BASE_VERSION}.dev_`printf %d $TRAVIS_BUILD_NUMBER`
- export NEW_VERSION
- export ECLIPSE_VERSION
- export BASE_VERSION
- echo "Building version $NEW_VERSION"
- ./set-version.sh $NEW_VERSION $ECLIPSE_VERSION
2017-02-18 09:18:17 -08:00
install:
- mvn install -Dteavm.build.all=false -P with-idea -P with-eclipse -P with-cli -DskipTests=true -Dmaven.javadoc.skip=true -B -V
- pushd tests/src/test/js
2017-04-22 01:45:28 -07:00
- npm config set prefix=$HOME/.node_modules
- npm install
- npm run build
- popd
script:
2017-07-04 14:08:03 -07:00
- mvn -e test -Dteavm.junit.optimized=false -Dteavm.junit.js.runner=none
- BASE_PATH=`pwd`
2017-04-22 04:14:50 -07:00
- pushd tests/src/test/js
2017-07-03 20:02:13 -07:00
- "export DISPLAY=:99.0"
- "sh -e /etc/init.d/xvfb start"
2017-07-02 06:25:11 -07:00
- sleep 10
2017-04-22 10:33:21 -07:00
- firefox index.html &
2017-04-22 08:18:00 -07:00
- FIREFOX_PID=$!
2017-04-22 04:14:50 -07:00
- node start.js $BASE_PATH/tests/target/js-tests
- node start.js $BASE_PATH/html4j/target/js-tests
2017-04-22 08:18:00 -07:00
- kill $FIREFOX_PID
2017-04-22 04:14:50 -07:00
- popd
after_success: >
2017-02-16 11:55:30 -08:00
if [[ "${TRAVIS_PULL_REQUEST:-unknown}" == "false" && $TRAVIS_BRANCH == dev-* ]] ; then
2017-02-18 09:18:17 -08:00
export NEW_VERSION
export TEAVM_FTP_HOST
export TEAVM_FTP_LOGIN
export TEAVM_FTP_PASSWORD
mvn deploy -Dteavm.build.all=false -DskipTests --settings travis-settings.xml -P deploy-to-bintray -P with-idea && \
./upload-files.sh
fi
after_script:
2018-01-02 10:21:06 -08:00
- rm -rf $HOME/.m2/repository/org/teavm