PhpSpreadsheet/.travis.yml

37 lines
814 B
YAML

language: php
php:
- 5.5
- 5.6
- 7.0
- 7.1
- hhvm
matrix:
allow_failures:
- php: 7.1
- php: hhvm
cache:
directories:
- vendor
- $HOME/.composer/cache
before_script:
## Packages
- sudo apt-get -qq update > /dev/null
## Composer
- composer self-update
- composer install
script:
## PHP_CodeSniffer
- ./vendor/bin/phpcs --report-width=200 --report-summary --report-full samples/ src/ tests/ --standard=PSR2 -n
## PHP-CS-Fixer
- ./vendor/bin/php-cs-fixer fix --diff --verbose
## PHPUnit
- travis_wait 30 ./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