Skip to content

Commit

Permalink
ci: quick refactor travis
Browse files Browse the repository at this point in the history
  • Loading branch information
belgattitude committed Dec 21, 2019
1 parent afd059c commit e8d6159
Showing 1 changed file with 4 additions and 18 deletions.
22 changes: 4 additions & 18 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -58,30 +58,16 @@ script:

jobs:
include:
# PHPstan
# PHPStan - CS
- stage: PHPStan
php: 7.3
env: MARIADB_VERSION=10.3 SET_INNODB_CONF=no
addons:
mariadb: 10.3
script:
- composer phpstan

# Coding standards
- stage: Coding standard
php: 7.3
script:
- ./vendor/bin/php-cs-fixer --diff --dry-run -v fix

# Coverage
- stage: Coverage
php: 7.3
before_script:
- mv ~/.phpenv/versions/$(phpenv version-name)/etc/conf.d/xdebug.ini{.disabled,}
- if [[ ! $(php -m | grep -si xdebug) ]]; then echo "xdebug required for coverage"; exit 1; fi
script:
- ./vendor/bin/phpunit -v --coverage-clover coverage.xml
after_script:
#- wget https://scrutinizer-ci.com/ocular.phar
#- php ocular.phar code-coverage:upload --format=php-clover clover.xml

# PHP 7.2
- stage: Test
php: 7.2
Expand Down

0 comments on commit e8d6159

Please sign in to comment.