mirror of
https://github.com/danog/psalm-plugin-phpunit.git
synced 2024-11-30 04:29:08 +01:00
52 lines
1.3 KiB
YAML
52 lines
1.3 KiB
YAML
language: php
|
|
php:
|
|
- 7.3
|
|
- 7.4
|
|
- nightly
|
|
before_install:
|
|
- phpenv config-rm xdebug.ini || true
|
|
|
|
install:
|
|
- composer config --global discard-changes true
|
|
- travis_retry composer install
|
|
- 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 --update-with-dependencies vimeo/psalm; fi
|
|
- 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
|
|
- ./vendor/bin/psalm --version
|
|
|
|
script: composer check
|
|
|
|
env:
|
|
global:
|
|
- DEFAULT_COMPOSER_FLAGS="--no-interaction --no-suggest"
|
|
jobs:
|
|
- DEPS="low"
|
|
- DEPS="high"
|
|
- DEPS="stable"
|
|
- DEPS="dev"
|
|
|
|
cache:
|
|
directories:
|
|
- $HOME/.composer/cache/files
|
|
- $HOME/.composer/cache/vcs
|
|
|
|
jobs:
|
|
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"
|
|
- php: nightly
|
|
env: DEPS="low"
|
|
- php: nightly
|
|
env: DEPS="high"
|
|
- php: nightly
|
|
env: DEPS="stable"
|
|
- php: nightly
|
|
env: DEPS="dev"
|