language: php
php:
- 5.6
- 7.0
- 7.1
matrix:
allow_failures:
- php: 7.1
branches:
except:
- gh-pages
addons:
hosts:
- blank
sudo: false
install:
- wget http://selenium-release.storage.googleapis.com/2.42/selenium-server-standalone-2.42.2.jar
- composer install
before_script:
- export DISPLAY=:99.0
- sh -e /etc/init.d/xvfb start
- sleep 5
- java -jar selenium-server-standalone-2.42.2.jar -port 4444 &
script:
- php vendor/bin/codecept run unit --coverage-xml --env travis
after_script:
- wget https://scrutinizer-ci.com/ocular.phar
- php ocular.phar code-coverage:upload --format=php-clover tests/_output/coverage.xml
|