2016-12-07 00:01:49 -05:00
|
|
|
language: php
|
2016-12-07 00:16:15 -05:00
|
|
|
|
2018-01-29 01:09:09 -05:00
|
|
|
matrix:
|
|
|
|
include:
|
|
|
|
- php: 7.0
|
|
|
|
- php: 7.1
|
|
|
|
- php: 7.2
|
|
|
|
env: COVERALLS=true
|
2016-12-07 00:16:15 -05:00
|
|
|
|
|
|
|
cache:
|
|
|
|
directories:
|
|
|
|
- ./vendor
|
|
|
|
|
2018-01-09 01:09:52 -05:00
|
|
|
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
|
2018-01-29 01:09:09 -05:00
|
|
|
- if [[ $COVERALLS = "" ]]; then phpenv config-rm xdebug.ini; fi
|
2018-01-09 01:09:52 -05:00
|
|
|
|
2016-12-07 00:16:15 -05:00
|
|
|
install:
|
2016-12-23 19:45:20 +00:00
|
|
|
- composer --prefer-source install
|
|
|
|
|
|
|
|
script:
|
|
|
|
- vendor/bin/phpunit
|
2017-12-30 09:51:01 -05:00
|
|
|
- ./psalm --find-dead-code
|
2017-04-28 00:31:55 -04:00
|
|
|
- vendor/bin/phpcs
|
2017-12-14 00:40:22 -05:00
|
|
|
|
|
|
|
after_success:
|
2017-12-14 00:48:27 -05:00
|
|
|
- travis_retry php vendor/bin/php-coveralls -v
|