mirror of
https://github.com/Eaglercraft-TeaVM-Fork/eagler-teavm.git
synced 2024-12-22 08:14:09 -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
|
||||
|
||||
addons:
|
||||
firefox: "53.0"
|
||||
chrome: stable
|
||||
|
||||
jdk:
|
||||
- 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
|
||||
- BASE_PATH=`pwd`
|
||||
- pushd tests/src/test/js
|
||||
- "export DISPLAY=:99.0"
|
||||
- "sh -e /etc/init.d/xvfb start"
|
||||
- sleep 10
|
||||
- firefox index.html &
|
||||
- FIREFOX_PID=$!
|
||||
- google-chrome-stable --headless --disable-gpu index.html &
|
||||
- BROWSER_PID=$!
|
||||
- node start.js $BASE_PATH/tests/target/js-tests
|
||||
- node start.js $BASE_PATH/html4j/target/js-tests
|
||||
- kill $FIREFOX_PID
|
||||
- kill $BROWSER_PID
|
||||
- popd
|
||||
- rm -rf $BASE_PATH/tests/target/js-tests
|
||||
- rm -rf $BASE_PATH/html4j/target/js-tests
|
||||
|
|
Loading…
Reference in New Issue
Block a user