From e0ce6d1df6e6c8e4a4ebb530eeead3c097e0aaab Mon Sep 17 00:00:00 2001 From: Alexey Andreev Date: Sun, 18 Aug 2019 11:25:19 +0300 Subject: [PATCH] Travis: replace Firefix with Chrome for running tests --- .travis.yml | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) diff --git a/.travis.yml b/.travis.yml index f13369d18..888fa4110 100644 --- a/.travis.yml +++ b/.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