mirror of
https://github.com/danog/psalm.git
synced 2024-11-27 04:45:20 +01:00
c1e21fcf5d
* upgrade phpunit, test with low and high deps * work around possibly-anonymous test cases introduced by newer PHPUnit * Alternative TestCase::getName() nullability workaround Previous workaround was failing due to PHP warnings on 7.1 or 7.2 (depending on specific signature). There's just no signature that would be working for all 4 variants of (ver / dep) matrix. * don't disable xdebug if it's not enabled * allowed 7.0/high to fail until PHPUnit 6.5.10 is released see sebastianbergmann/phpunit#3209
50 lines
1.0 KiB
YAML
50 lines
1.0 KiB
YAML
language: php
|
|
|
|
matrix:
|
|
exclude:
|
|
- php: 7.0
|
|
env: DEPS="" COVERALLS=true
|
|
- php: 7.1
|
|
env: DEPS="" COVERALLS=true
|
|
- php: 7.2
|
|
env: DEPS="" COVERALLS=""
|
|
- php: nightly
|
|
env: DEPS="" COVERALLS=true
|
|
allow_failures:
|
|
- php: nightly
|
|
- php: 7.0
|
|
env: DEPS="" COVERALLS=""
|
|
php:
|
|
- 7.0
|
|
- 7.1
|
|
- 7.2
|
|
- nightly
|
|
|
|
env:
|
|
- DEPS="--prefer-lowest --prefer-stable" COVERALLS=""
|
|
- DEPS="" COVERALLS=""
|
|
- DEPS="" COVERALLS=true
|
|
|
|
cache:
|
|
directories:
|
|
- ./vendor
|
|
|
|
before_install:
|
|
# determine INI file
|
|
- export INI_DIR=~/.phpenv/versions/$(phpenv version-name)/etc/conf.d
|
|
- export INI=$INI_DIR/travis.ini
|
|
# disable default memory limit
|
|
- echo memory_limit = 2G >> $INI
|
|
- if [[ $COVERALLS = "" && -f $INI_DIR/xdebug.ini ]]; then phpenv config-rm xdebug.ini; fi
|
|
|
|
install:
|
|
- composer --prefer-source $DEPS update
|
|
|
|
script:
|
|
- vendor/bin/phpunit
|
|
- ./psalm --find-dead-code
|
|
- vendor/bin/phpcs
|
|
|
|
after_success:
|
|
- travis_retry php vendor/bin/php-coveralls -v
|