Skip to content
This repository has been archived by the owner on Apr 20, 2021. It is now read-only.

Symfony 5 compatibility #281

Merged
merged 2 commits into from
Feb 27, 2020
Merged
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
33 changes: 22 additions & 11 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
language: php

dist: trusty

addons:
chrome: stable

Expand All @@ -10,8 +12,7 @@ cache:
env:
global:
- DISPLAY=:99.0
- CHROME_DRIVER_VERSION=2.36
- SELENIUM_VERSION=3.6.0
- SELENIUM_VERSION=3.9.1
matrix:
- DEPS=high PROFILE=default
- DEPS=low PROFILE=default
Expand All @@ -21,31 +22,41 @@ env:
php:
- 5.5
- 5.6
- 7.0
- 7.1
- 7.2
- 7.3
- 7.4
- nightly

matrix:
exclude:
- php: 7.4
env: DEPS=low PROFILE=default
- php: 7.4
env: DEPS=low PROFILE=symfony2
- php: nightly
env: DEPS=low PROFILE=default
- php: nightly
env: DEPS=low PROFILE=symfony2
allow_failures:
- php: nightly
- php: hhvm
- php: hhvm-nightly
fast_finish: true

before_script:
- Xvfb $DISPLAY -extension RANDR &> /dev/null &

- wget "https://chromedriver.storage.googleapis.com/${CHROME_DRIVER_VERSION}/chromedriver_linux64.zip"
- unzip chromedriver_linux64.zip
- LATEST_CHROMEDRIVER_VERSION=`curl http://chromedriver.storage.googleapis.com/LATEST_RELEASE`
- wget --no-verbose https://chromedriver.storage.googleapis.com/$LATEST_CHROMEDRIVER_VERSION/chromedriver_linux64.zip
- unzip chromedriver_linux64.zip -d ~/bin

- wget "https://selenium-release.storage.googleapis.com/${SELENIUM_VERSION%%.[[:digit:]]}/selenium-server-standalone-${SELENIUM_VERSION}.jar" -O selenium.jar
- java -jar -Dwebdriver.chrome.driver=./chromedriver selenium.jar &> /dev/null &
- java -jar selenium.jar &> /dev/null &

- php -S localhost:8080 -t tests/fixtures/www &> /dev/null &
- cp behat.yml{.dist,}
- composer install
- COMPOSER_PATH="/home/travis/.phpenv/versions/$TRAVIS_PHP_VERSION/bin/composer"
- php -d memory_limit=-1 $COMPOSER_PATH install

- test "$DEPS" == "low" || composer update --prefer-lowest
- test "$DEPS" == "high" || php -d memory_limit=-1 $COMPOSER_PATH update --prefer-lowest
- test ${TRAVIS_PHP_VERSION:0:1} -lt 7 || composer update atoum/atoum

script:
Expand Down
11 changes: 10 additions & 1 deletion behat.yml.dist
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,16 @@ default:
base_url: 'http://localhost:8080'
files_path: 'tests/fixtures/files'
goutte: ~
selenium2: ~
selenium2:
capabilities:
chrome:
switches:
- "--headless"
- "--disable-gpu"
- "--no-sandbox"
extra_capabilities:
"goog:chromeOptions":
w3c: false
browser_name: 'chrome'
sessions:
default:
Expand Down
10 changes: 5 additions & 5 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,17 +8,17 @@
"require": {
"php": ">=5.5",
"behat/behat": "^3.0.13",
"behat/mink-extension": "^2.3.1",
"friends-of-behat/mink-extension": "^2.3.1",
"justinrainbow/json-schema": "^5.0",
"symfony/property-access": "^2.3|^3.0|^4.0",
"symfony/http-foundation": "^2.3|^3.0|^4.0",
"symfony/dom-crawler": "^2.4|^3.0|^4.0"
"symfony/property-access": "^2.3|^3.0|^4.0|^5.0",
"symfony/http-foundation": "^2.3|^3.0|^4.0|^5.0",
"symfony/dom-crawler": "^2.4|^3.0|^4.0|^5.0"
},

"require-dev": {
"behat/mink-goutte-driver": "^1.1",
"guzzlehttp/guzzle": "^6.3",
"behat/mink-selenium2-driver": "^1.3",
"behat/mink-selenium2-driver": "^1.4@dev",
"atoum/atoum": "^2.8|^3.0",
"fabpot/goutte": "^3.2"
},
Expand Down