1
0
mirror of https://github.com/danog/psalm.git synced 2024-11-27 04:45:20 +01:00
psalm/.travis.yml

50 lines
1.0 KiB
YAML
Raw Normal View History

2016-12-07 06:01:49 +01:00
language: php
2016-12-07 06:16:15 +01:00
matrix:
exclude:
- php: 7.0
env: DEPS="" COVERALLS=true
- php: 7.1
env: DEPS="" COVERALLS=true
- php: 7.2
env: DEPS="" COVERALLS=""
2018-07-13 16:13:23 +02:00
- 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
2016-12-07 06:16:15 +01:00
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
2016-12-07 06:16:15 +01:00
install:
- composer --prefer-source $DEPS update
2016-12-23 20:45:20 +01:00
script:
- vendor/bin/phpunit
- ./psalm --find-dead-code
- vendor/bin/phpcs
after_success:
2017-12-14 06:48:27 +01:00
- travis_retry php vendor/bin/php-coveralls -v