diff --git a/.travis.yml b/.travis.yml index b04333a9..a2f23a8b 100644 --- a/.travis.yml +++ b/.travis.yml @@ -6,27 +6,11 @@ cache: directories: - $HOME/.composer/cache/files -php: [5.3, 5.4, 5.5, 5.6, 7.0, 7.1, hhvm] +php: [5.4] env: - WEBDRIVER=selenium -matrix: - allow_failures: - - env: 'WEBDRIVER=phantomjs' - - env: WEBDRIVER=phantomjs PHANTOM_VERSION=2 - fast_finish: true - include: - - php: 5.5 - env: WEBDRIVER=phantomjs - - php: 5.5 - env: WEBDRIVER=phantomjs PHANTOM_VERSION=2 - - php: 7.0 - env: WEBDRIVER=selenium-remote - sudo: required - services: - - docker - before_script: - sh bin/run-"$WEBDRIVER".sh @@ -34,6 +18,7 @@ before_script: # Start a webserver for web fixtures. Force using PHP 5.6 to be able to run it on PHP 5.3 and HHVM jobs too - MINK_PHP_BIN=~/.phpenv/versions/5.6/bin/php vendor/bin/mink-test-server > /dev/null 2>&1 & + - WEB_FIXTURES_BROWSER=chrome script: phpunit -v --coverage-clover=coverage.clover diff --git a/bin/run-selenium.sh b/bin/run-selenium.sh index e846d3ae..f8246a12 100644 --- a/bin/run-selenium.sh +++ b/bin/run-selenium.sh @@ -6,6 +6,8 @@ sh -e /etc/init.d/xvfb start export DISPLAY=:99.0 echo ' Downloading selenium' -curl -L http://selenium-release.storage.googleapis.com/2.52/selenium-server-standalone-2.52.0.jar > selenium.jar +curl -L https://selenium-release.storage.googleapis.com/3.13/selenium-server-standalone-3.13.0.jar > selenium.jar +curl -L https://chromedriver.storage.googleapis.com/2.40/chromedriver_linux64.zip > chromedriver_linux64.zip +unzip chromedriver_linux64.zip echo ' Running selenium' java -jar selenium.jar -log /tmp/webdriver.log > /tmp/webdriver_output.txt 2>&1 &