mirror of
https://github.com/danog/psalm.git
synced 2024-11-26 20:34:47 +01:00
32 lines
616 B
YAML
32 lines
616 B
YAML
language: php
|
|
|
|
matrix:
|
|
include:
|
|
- php: 5.6
|
|
- php: 7.0
|
|
- php: 7.1
|
|
- php: 7.2
|
|
env: COVERALLS=true
|
|
|
|
cache:
|
|
directories:
|
|
- ./vendor
|
|
|
|
before_install:
|
|
# determine INI file
|
|
- export INI=~/.phpenv/versions/$(phpenv version-name)/etc/conf.d/travis.ini
|
|
# disable default memory limit
|
|
- echo memory_limit = 2G >> $INI
|
|
- if [[ $COVERALLS = "" ]]; then phpenv config-rm xdebug.ini; fi
|
|
|
|
install:
|
|
- composer --prefer-source install
|
|
|
|
script:
|
|
- vendor/bin/phpunit
|
|
- ./psalm --find-dead-code
|
|
- vendor/bin/phpcs
|
|
|
|
after_success:
|
|
- travis_retry php vendor/bin/php-coveralls -v
|