Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 2 additions & 17 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,34 +6,19 @@ 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

- composer install

# 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

Expand Down
4 changes: 3 additions & 1 deletion bin/run-selenium.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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 &