Permalink
Switch branches/tags
Nothing to show
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
26 lines (22 sloc) 992 Bytes
language: php
php:
- 5.4
- 5.5
- 5.6
env:
global:
- secure: "KJRymHvwJnsml+DCVE8nISScuqXY/56RKQP+l0nAoQ/XN6ZakbkvOCX2lMOEth6UYTeHUecTnn2f2Qezel+yFv5wQOWm9MBEO/nBXE9zXBbNE4Uqnq4oVkfBK1yYwtpDHK+7VXYmUM+6ErpBhfq4LfIP+D1X36tqqrFxDmEjl04="
- secure: "GGQsmEk6XRUyKWSLfFPgw6yxoKV9FCqOzjOmIqHrGt3aIjaiWSIzYBMfdmcRdwpXxAAsChZzPzLSgnPlsarD5cXljYbYwWM/gPJqFvThnpPb3A5UqKPDeyHNC8p3LFdXKkyctSfn5M8veaxpxiGAHC/Mn1Wx2dgkcVre7owMgDY="
before_script:
- composer self-update
- composer install --prefer-source --no-interaction
script:
- phpunit -c phpunit.xml
# Scrutinizer coverage report
- sh -c "if [ '$TRAVIS_PHP_VERSION' != 'hhvm' ]; then wget https://scrutinizer-ci.com/ocular.phar; fi"
- sh -c "if [ '$TRAVIS_PHP_VERSION' != 'hhvm' ]; then php ocular.phar code-coverage:upload --format=php-clover build/logs/clover.xml; fi"
after_script:
# Codacy coverage report
- php vendor/bin/codacycoverage clover
# Codeclimate coverage report
- php vendor/bin/test-reporter