mirror of
https://github.com/danog/psalm.git
synced 2024-12-02 09:37:59 +01:00
47 lines
1.1 KiB
YAML
47 lines
1.1 KiB
YAML
language: php
|
|
|
|
matrix:
|
|
include:
|
|
- php: 7.0
|
|
env: DEPS="--prefer-lowest --prefer-stable" COVERALLS=""
|
|
- php: 7.0
|
|
env: DEPS="" COVERALLS=""
|
|
- php: 7.1
|
|
env: DEPS="--prefer-lowest --prefer-stable" COVERALLS=""
|
|
- php: 7.1
|
|
env: DEPS="" COVERALLS=""
|
|
- php: 7.2
|
|
env: DEPS="--prefer-lowest --prefer-stable" COVERALLS=""
|
|
- php: 7.2
|
|
env: DEPS="" COVERALLS=true
|
|
- php: nightly
|
|
env: DEPS="" COVERALLS=""
|
|
allow_failures:
|
|
- php: nightly
|
|
env: DEPS="" COVERALLS=""
|
|
- php: 7.1
|
|
env: DEPS="--prefer-lowest --prefer-stable" COVERALLS=""
|
|
|
|
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
|