PhpSpreadsheet/.travis.yml

38 lines
1022 B
YAML
Raw Normal View History

2012-11-23 10:51:34 +00:00
language: php
php:
2013-09-06 08:53:46 +00:00
- 5.5
2014-07-09 10:18:09 +00:00
- 5.6
- 7.0
2016-08-13 14:45:37 +00:00
- 7.1
2014-07-09 10:18:09 +00:00
- hhvm
2014-07-09 10:18:09 +00:00
matrix:
include:
- php: 7.0
env: COVERAGE=1
2015-05-11 10:30:15 +00:00
allow_failures:
2016-08-13 14:45:37 +00:00
- php: 7.1
2015-05-11 10:30:15 +00:00
- php: hhvm
cache:
directories:
- vendor
- $HOME/.composer/cache
2015-05-11 10:30:15 +00:00
before_script:
# Deactivate xdebug if we don't do code coverage
- if [ -z "$COVERAGE" ]; then rm -rfv /home/travis/.phpenv/versions/$(phpenv version-name)/etc/conf.d/xdebug.ini ; fi
- composer install
2012-11-23 10:51:34 +00:00
script:
# PHP_CodeSniffer
- if [ -z "$COVERAGE" ]; then ./vendor/bin/phpcs --report-width=200 --report-summary --report-full samples/ src/ tests/ --standard=PSR2 -n ; fi
# PHP-CS-Fixer
- if [ -z "$COVERAGE" ]; then ./vendor/bin/php-cs-fixer fix --diff --verbose ; fi
# PHPUnit
- ./vendor/bin/phpunit $(if [ -n "$COVERAGE" ]; then echo --debug --coverage-clover coverage-clover.xml ; fi)
2016-08-16 14:38:24 +00:00
after_script:
- if [ -n "$COVERAGE" ]; then wget https://scrutinizer-ci.com/ocular.phar && php ocular.phar code-coverage:upload --format=php-clover tests/coverage-clover.xml ; fi