2019-02-09 08:05:05 +01:00
|
|
|
language: php
|
|
|
|
php:
|
2019-02-13 21:54:38 +01:00
|
|
|
- 7.1
|
|
|
|
- 7.2
|
2019-02-09 08:05:05 +01:00
|
|
|
- 7.3
|
2020-02-07 11:55:13 +01:00
|
|
|
- 7.4
|
2019-02-09 08:05:05 +01:00
|
|
|
before_install:
|
|
|
|
- phpenv config-rm xdebug.ini || true
|
2020-01-11 22:09:19 +01:00
|
|
|
- composer clear-cache
|
2019-02-09 08:05:05 +01:00
|
|
|
|
|
|
|
install:
|
2019-02-09 08:51:59 +01:00
|
|
|
- composer install
|
2020-02-07 12:17:38 +01:00
|
|
|
- if [[ "$DEPS" = 'high' || "$DEPS" = 'dev' ]]; then travis_retry composer $DEFAULT_COMPOSER_FLAGS update; fi
|
|
|
|
- if [[ "$DEPS" = 'high' ]]; then composer require $DEFAULT_COMPOSER_FLAGS --prefer-stable vimeo/psalm; fi
|
2019-02-09 08:05:05 +01:00
|
|
|
- if [[ "$DEPS" = 'low' ]]; then travis_retry composer $DEFAULT_COMPOSER_FLAGS --prefer-lowest --prefer-stable update; fi
|
|
|
|
- if [[ "$DEPS" = 'stable' ]]; then travis_retry composer $DEFAULT_COMPOSER_FLAGS --prefer-stable update; fi
|
2019-02-11 04:46:15 +01:00
|
|
|
- ./vendor/bin/psalm --version
|
2019-02-09 08:05:05 +01:00
|
|
|
|
|
|
|
script: composer check
|
|
|
|
|
|
|
|
env:
|
|
|
|
matrix:
|
|
|
|
- DEPS="low"
|
|
|
|
- DEPS="high"
|
|
|
|
- DEPS="stable"
|
2020-02-07 12:17:38 +01:00
|
|
|
- DEPS="dev"
|
2019-02-09 08:05:05 +01:00
|
|
|
global:
|
|
|
|
- DEFAULT_COMPOSER_FLAGS="--no-interaction --no-suggest"
|
2020-02-07 14:15:29 +01:00
|
|
|
|
2020-02-07 14:45:06 +01:00
|
|
|
cache:
|
|
|
|
directories:
|
|
|
|
- ./vendor
|
|
|
|
|
2020-02-07 14:15:29 +01:00
|
|
|
allow_failures:
|
|
|
|
- php: 7.1
|
|
|
|
env: DEPS="dev"
|
|
|
|
- php: 7.2
|
|
|
|
env: DEPS="dev"
|
|
|
|
- php: 7.3
|
|
|
|
env: DEPS="dev"
|
|
|
|
- php: 7.4
|
|
|
|
env: DEPS="dev"
|