Skip to content

Commit

Permalink
Update .travis.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
koriym committed May 27, 2020
1 parent a88aee4 commit 3ffd5a7
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,19 +1,15 @@
language: php
sudo: false

php:
- 7.2
- 7.3
- 7.4snapshot
- 7.4

cache:
directories:
- vendor
- $HOME/.composer/cache

matrix:
fast_finish: true

before_install:
- mv ~/.phpenv/versions/$(phpenv version-name)/etc/conf.d/xdebug.ini{,.disabled} || echo "xdebug not available"
- if [ -n "$GH_TOKEN" ]; then composer config github-oauth.github.com ${GH_TOKEN}; fi;
Expand All @@ -26,13 +22,14 @@ script:
- ./vendor/bin/phpunit;

jobs:
fast_finish: true
include:
- stage: Test
name: Lowest dependencies
php: 7.2
install: composer update --prefer-dist --prefer-lowest

- stage: Test
- stage: Code Quality
name: Code coverage
php: 7.2
before_script:
Expand All @@ -46,10 +43,13 @@ jobs:
- stage: Code Quality
name: Static analysis
php: 7.2
install: composer global require --dev phpstan/phpstan ^0.11 vimeo/psalm ^3.7;
install:
- composer update
- composer global require --dev phpstan/phpstan ^0.12 vimeo/psalm ^3.11 phpmetrics/phpmetrics ^2.6;
script:
- ~/.composer/vendor/bin/phpstan analyse -l max -c phpstan.neon src tests --no-progress --no-interaction;
- ~/.composer/vendor/bin/phpstan analyse -c phpstan.neon --no-progress --no-interaction;
- ~/.composer/vendor/bin/psalm --show-info=false
- ~/.composer/vendor/bin/phpmetrics --exclude=Exception src

- stage: Code Quality
name: Coding standards
Expand Down

0 comments on commit 3ffd5a7

Please sign in to comment.