2016-12-07 06:01:49 +01:00
|
|
|
language: php
|
2016-12-07 06:16:15 +01:00
|
|
|
|
2018-01-29 07:09:09 +01:00
|
|
|
matrix:
|
2018-07-17 21:24:20 +02:00
|
|
|
include:
|
2018-01-29 07:09:09 +01:00
|
|
|
- php: 7.0
|
2018-07-17 21:24:20 +02:00
|
|
|
env: DEPS="--prefer-lowest --prefer-stable" COVERALLS=""
|
|
|
|
- php: 7.0
|
|
|
|
env: DEPS="" COVERALLS=""
|
|
|
|
- php: 7.1
|
|
|
|
env: DEPS="--prefer-lowest --prefer-stable" COVERALLS=""
|
2018-01-29 07:09:09 +01:00
|
|
|
- php: 7.1
|
2018-07-13 23:44:50 +02:00
|
|
|
env: DEPS="" COVERALLS=""
|
2018-07-17 21:24:20 +02:00
|
|
|
- php: 7.2
|
|
|
|
env: DEPS="--prefer-lowest --prefer-stable" COVERALLS=""
|
|
|
|
- php: 7.2
|
2018-07-13 23:44:50 +02:00
|
|
|
env: DEPS="" COVERALLS=true
|
2018-07-17 21:24:20 +02:00
|
|
|
- php: nightly
|
|
|
|
env: DEPS="" COVERALLS=""
|
2018-07-12 23:49:39 +02:00
|
|
|
allow_failures:
|
|
|
|
- php: nightly
|
2018-07-13 23:44:50 +02:00
|
|
|
env: DEPS="" COVERALLS=""
|
2018-07-20 13:07:25 +02:00
|
|
|
- php: 7.1
|
|
|
|
env: DEPS="--prefer-lowest --prefer-stable" COVERALLS=""
|
2016-12-07 06:16:15 +01:00
|
|
|
|
|
|
|
cache:
|
|
|
|
directories:
|
|
|
|
- ./vendor
|
|
|
|
|
2018-01-09 07:09:52 +01:00
|
|
|
before_install:
|
|
|
|
# determine INI file
|
2018-07-13 23:44:50 +02:00
|
|
|
- export INI_DIR=~/.phpenv/versions/$(phpenv version-name)/etc/conf.d
|
|
|
|
- export INI=$INI_DIR/travis.ini
|
2018-01-09 07:09:52 +01:00
|
|
|
# disable default memory limit
|
|
|
|
- echo memory_limit = 2G >> $INI
|
2018-07-13 23:44:50 +02:00
|
|
|
- if [[ $COVERALLS = "" && -f $INI_DIR/xdebug.ini ]]; then phpenv config-rm xdebug.ini; fi
|
2018-01-09 07:09:52 +01:00
|
|
|
|
2016-12-07 06:16:15 +01:00
|
|
|
install:
|
2018-07-13 23:44:50 +02:00
|
|
|
- composer --prefer-source $DEPS update
|
2016-12-23 20:45:20 +01:00
|
|
|
|
|
|
|
script:
|
|
|
|
- vendor/bin/phpunit
|
2017-12-30 15:51:01 +01:00
|
|
|
- ./psalm --find-dead-code
|
2017-04-28 06:31:55 +02:00
|
|
|
- vendor/bin/phpcs
|
2017-12-14 06:40:22 +01:00
|
|
|
|
|
|
|
after_success:
|
2017-12-14 06:48:27 +01:00
|
|
|
- travis_retry php vendor/bin/php-coveralls -v
|