Travis: replace Firefix with Chrome for running tests

This commit is contained in:
Alexey Andreev 2019-08-18 11:25:19 +03:00
parent 2e5bda4a40
commit e0ce6d1df6

View File

@ -2,7 +2,7 @@ language: java
sudo: false sudo: false
addons: addons:
firefox: "53.0" chrome: stable
jdk: jdk:
- oraclejdk11 - oraclejdk11
@ -46,14 +46,11 @@ script:
- $MVN_CMD -e install -Dteavm.junit.optimized=false -Dteavm.junit.js.decodeStack=false -P with-idea -P with-cli -Dteavm.junit.js.runner=none -V - $MVN_CMD -e install -Dteavm.junit.optimized=false -Dteavm.junit.js.decodeStack=false -P with-idea -P with-cli -Dteavm.junit.js.runner=none -V
- BASE_PATH=`pwd` - BASE_PATH=`pwd`
- pushd tests/src/test/js - pushd tests/src/test/js
- "export DISPLAY=:99.0" - google-chrome-stable --headless --disable-gpu index.html &
- "sh -e /etc/init.d/xvfb start" - BROWSER_PID=$!
- sleep 10
- firefox index.html &
- FIREFOX_PID=$!
- node start.js $BASE_PATH/tests/target/js-tests - node start.js $BASE_PATH/tests/target/js-tests
- node start.js $BASE_PATH/html4j/target/js-tests - node start.js $BASE_PATH/html4j/target/js-tests
- kill $FIREFOX_PID - kill $BROWSER_PID
- popd - popd
- rm -rf $BASE_PATH/tests/target/js-tests - rm -rf $BASE_PATH/tests/target/js-tests
- rm -rf $BASE_PATH/html4j/target/js-tests - rm -rf $BASE_PATH/html4j/target/js-tests