mirror of
https://github.com/Eaglercraft-TeaVM-Fork/eagler-teavm.git
synced 2024-12-22 16:14:10 -08:00
Travis: replace Firefix with Chrome for running tests
This commit is contained in:
parent
2e5bda4a40
commit
e0ce6d1df6
11
.travis.yml
11
.travis.yml
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue
Block a user