PhpSpreadsheet/.travis.yml

37 lines
782 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:
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:
## Packages
- sudo apt-get -qq update > /dev/null
## Composer
- composer self-update
- composer install
2012-11-23 10:51:34 +00:00
script:
2015-05-11 10:30:15 +00:00
## PHP_CodeSniffer
- ./vendor/bin/phpcs --report-width=200 --report-summary --report-full src/ tests/ --standard=PSR2 -n
## PHP-CS-Fixer
- ./vendor/bin/php-cs-fixer fix . --diff
2015-05-11 10:30:15 +00:00
## PHPUnit
2016-08-16 14:38:24 +00:00
- ./vendor/bin/phpunit --coverage-clover coverage-clover.xml
after_script:
- if [ "$TRAVIS_PHP_VERSION" = "7.0" ]; then wget https://scrutinizer-ci.com/ocular.phar && php ocular.phar code-coverage:upload --format=php-clover tests/coverage-clover.xml ; fi