Skip to content

Commit

Permalink
Run phpstan on PHP >= 7.1 (sabre-io#483)
Browse files Browse the repository at this point in the history
  • Loading branch information
JeroenVanOort authored and bcaller committed Jul 27, 2020
1 parent 59cb47d commit 5fa278b
Showing 1 changed file with 5 additions and 14 deletions.
19 changes: 5 additions & 14 deletions .travis.yml
@@ -1,39 +1,30 @@
language: php
sudo: required
php:
- 5.5
- 5.6
- 7.0
- 7.1
- 7.2
- 7.3
- 7.4snapshot

env:
global:
- RUN_PHPSTAN="FALSE"
- 7.4

matrix:
include:
- name: 'PHPStan'
php: 7.2
env: RUN_PHPSTAN="TRUE"
fast_finish: true
allow_failures:
- php: 5.5
- php: 7.2
env: RUN_PHPSTAN="TRUE"

install:
- if [ $RUN_PHPSTAN == "TRUE" ]; then wget https://github.com/phpstan/phpstan/releases/download/0.11.8/phpstan.phar; fi
- if [[ $TRAVIS_PHP_VERSION =~ ^7\.1|7\.2|7\.3|7\.4$ ]]; then wget https://github.com/phpstan/phpstan/releases/download/0.12.3/phpstan.phar; fi

before_script:
- composer install

script:
- if [ $RUN_PHPSTAN == "FALSE" ]; then ./bin/phpunit --configuration tests/phpunit.xml --coverage-clover=coverage.xml; fi
- if [ $RUN_PHPSTAN == "TRUE" ]; then php phpstan.phar analyse -c phpstan.neon lib; fi

- if [[ $TRAVIS_PHP_VERSION =~ ^7\.1|7\.2|7\.3|7\.4$ ]]; then php phpstan.phar analyse -c phpstan.neon lib; fi
- ./bin/phpunit --configuration tests/phpunit.xml --coverage-clover=coverage.xml
after_success:
- bash <(curl -s https://codecov.io/bash)

Expand Down

0 comments on commit 5fa278b

Please sign in to comment.