Skip to content

Commit

Permalink
Merge pull request #316 from stof/ci_setup
Browse files Browse the repository at this point in the history
Update the CI setup
  • Loading branch information
stof authored Mar 11, 2020
2 parents e2f7a8a + c0e2bff commit 727f987
Showing 1 changed file with 9 additions and 5 deletions.
14 changes: 9 additions & 5 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
language: php
sudo: false

dist: xenial

services:
Expand All @@ -9,7 +9,7 @@ php:
- 7.0
- 7.1
- 7.2
- 7.3.6
- 7.3
- 7.4

matrix:
Expand All @@ -30,18 +30,22 @@ cache:
directories:
- $HOME/.composer/cache/files

before_install:
# Install symfony/error-handler on compatible PHP versions to avoid a deprecation warning of the old DebugClassLoader and ErrorHandler classes
- if [[ "$TRAVIS_PHP_VERSION" != 5.* && "$TRAVIS_PHP_VERSION" != 7.0 ]]; then composer require --no-update --dev symfony/error-handler "^4.4 || ^5.0"; fi;

install:
- composer install --no-interaction
- composer install -n --prefer-dist

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 &
- docker run -p 4444:4444 --network=host -v /dev/shm:/dev/shm --shm-size 2g -e JAVA_OPTS="-Dselenium.LOGGER.level=WARNING" 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:
- ./vendor/bin/simple-phpunit -v --coverage-clover=coverage.clover
- ./vendor/bin/phpunit -v --coverage-clover=coverage.clover

after_script:
- wget https://scrutinizer-ci.com/ocular.phar
Expand Down

0 comments on commit 727f987

Please sign in to comment.