Skip to content

Commit

Permalink
Merge pull request #654 from garas/travis-fixes
Browse files Browse the repository at this point in the history
Fix Travis CI testing
  • Loading branch information
markstory authored Dec 24, 2018
2 parents 92dc4db + dfbd2b4 commit 87163ad
Showing 1 changed file with 6 additions and 10 deletions.
16 changes: 6 additions & 10 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,38 +2,34 @@ language: php

dist: trusty

sudo: false

php:
- 5.6
- 7.0
- 7.1
- 7.2

matrix:
fast_finish: true
- 7.3

env:
global:
- DEFAULT=1

matrix:
include:
- php: 7.0
- php: 7.2
env: PHPCS=1 DEFAULT=0

- php: 7.1
- php: 7.2
env: PHPSTAN=1 DEFAULT=0

before_script:
- if [[ $PHPCS = 1 ]]; then composer require cakephp/cakephp-codesniffer:~2.1; fi
- if [[ $DEFAULT = 1 ]]; then composer install; fi
- if [[ $DEFAULT = 1 ]]; then composer require phpunit/phpunit:"^5.7|^6.0"; fi
- if [[ $DEFAULT = 1 ]]; then composer run-script post-install-cmd --no-interaction; fi
- if [[ $PHPSTAN = 1 ]]; then composer require --dev "phpstan/phpstan"; fi

script:
- if [[ $DEFAULT = 1 ]]; then vendor/bin/phpunit; fi
- if [[ $PHPCS = 1 ]]; then vendor/bin/phpcs -p --extensions=php --standard=vendor/cakephp/cakephp-codesniffer/CakePHP ./src ./tests ./config ./webroot; fi
- if [[ $PHPSTAN = 1 ]]; then vendor/bin/phpstan analyse -l 5 src; fi
- if [[ $PHPSTAN = 1 ]]; then vendor/bin/phpstan analyse -l 5 src/; fi

notifications:
email: false

0 comments on commit 87163ad

Please sign in to comment.