-
Notifications
You must be signed in to change notification settings - Fork 163
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Showing
6 changed files
with
64 additions
and
47 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,43 +1,54 @@ | ||
language: php | ||
|
||
sudo: false | ||
dist: xenial | ||
|
||
cache: | ||
directories: | ||
- $HOME/.composer/cache/files | ||
|
||
php: [5.4, 5.5, 5.6, 7.0, 7.1, 7.2] | ||
services: | ||
- docker | ||
|
||
env: | ||
global: | ||
- WEBDRIVER=selenium | ||
php: | ||
- 7.0 | ||
- 7.1 | ||
- 7.2 | ||
- 7.3.6 | ||
- 7.4snapshot | ||
|
||
matrix: | ||
fast_finish: true | ||
allow_failures: | ||
- php: 7.4snapshot | ||
include: | ||
- php: 7.0 | ||
env: WEBDRIVER=selenium-remote | ||
sudo: required | ||
services: | ||
- docker | ||
- php: 5.3 | ||
dist: precise | ||
# Force using PHP 5.6 for the test server as PHP 5.3 does not have the builtin webserver | ||
env: MINK_PHP_BIN=~/.phpenv/versions/5.6/bin/php | ||
- php: 5.4 | ||
dist: trusty | ||
- php: 5.5 | ||
dist: trusty | ||
- php: 5.6 | ||
dist: trusty | ||
|
||
before_script: | ||
- sh bin/run-"$WEBDRIVER".sh | ||
env: | ||
global: | ||
- DISPLAY=:99.0 | ||
|
||
- composer install | ||
cache: | ||
directories: | ||
- $HOME/.composer/cache/files | ||
|
||
install: | ||
- composer install --no-interaction | ||
|
||
# Start a webserver for web fixtures. | ||
- vendor/bin/mink-test-server > /dev/null 2>&1 & | ||
before_script: | ||
- mkdir ./logs | ||
- docker run -p 4444:4444 --network=host -v /dev/shm:/dev/shm --shm-size 2g selenium/standalone-firefox:2.53.1 &> ./logs/selenium.log & | ||
- ./vendor/bin/mink-test-server &> ./logs/mink-test-server.log & | ||
- until $(echo | nc localhost 4444); do sleep 1; echo Waiting for Selenium server on port 4444...; done; echo "Selenium server started" | ||
- until $(echo | nc localhost 8002); do sleep 1; echo waiting for PHP server on port 8002...; done; echo "PHP server started" | ||
|
||
script: phpunit -v --coverage-clover=coverage.clover | ||
script: | ||
- ./vendor/bin/simple-phpunit -v --coverage-clover=coverage.clover | ||
|
||
after_script: | ||
- wget https://scrutinizer-ci.com/ocular.phar | ||
- php ocular.phar code-coverage:upload --format=php-clover coverage.clover | ||
|
||
after_failure: | ||
- cat /tmp/webdriver_output.txt | ||
- cat ./logs/selenium.log | ||
- cat ./logs/mink-test-server.log |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters