PhpSpreadsheet/.travis.yml

39 lines
784 B
YAML

language: php
dist: bionic
php:
- 7.2
- 7.3
- 7.4
cache:
directories:
- vendor
- $HOME/.composer/cache
before_script:
# Deactivate xdebug
- phpenv config-rm xdebug.ini
- composer install --ignore-platform-reqs
script:
- ./vendor/bin/phpunit --color=always --coverage-text
jobs:
include:
- stage: Code style
php: 7.4
script:
- ./vendor/bin/php-cs-fixer fix --diff --verbose --dry-run
- ./vendor/bin/phpcs
- stage: Coverage
php: 7.4
script:
- pecl install pcov
- ./vendor/bin/phpunit --coverage-clover coverage-clover.xml
after_script:
- wget https://scrutinizer-ci.com/ocular.phar
- php ocular.phar code-coverage:upload --format=php-clover tests/coverage-clover.xml