2016-04-10 09:50:24 +00:00
|
|
|
language: php
|
2016-06-30 21:42:45 +00:00
|
|
|
|
2016-07-01 20:05:20 +00:00
|
|
|
matrix:
|
|
|
|
fast_finish: true
|
2016-06-30 21:42:45 +00:00
|
|
|
|
2016-07-01 20:05:20 +00:00
|
|
|
include:
|
2016-12-12 18:12:26 +00:00
|
|
|
- os: linux
|
|
|
|
php: '7.1'
|
2017-11-22 21:16:10 +00:00
|
|
|
env: DISABLE_XDEBUG="true" STATIC_ANALYSIS="true"
|
2016-12-12 18:12:26 +00:00
|
|
|
|
2017-11-13 15:54:04 +00:00
|
|
|
- os: linux
|
|
|
|
php: '7.2'
|
2017-11-15 10:08:51 +00:00
|
|
|
env: PHPUNIT_FLAGS="--coverage-clover build/logs/clover.xml"
|
2017-11-13 15:54:04 +00:00
|
|
|
|
2016-07-01 20:05:20 +00:00
|
|
|
- os: osx
|
|
|
|
osx_image: xcode7.3
|
|
|
|
language: generic
|
|
|
|
env:
|
|
|
|
- _OSX=10.11
|
2017-11-14 20:21:23 +00:00
|
|
|
- _PHP: php71
|
2016-07-01 20:05:20 +00:00
|
|
|
|
2018-01-31 20:50:26 +00:00
|
|
|
cache:
|
|
|
|
directories:
|
|
|
|
- $HOME/.composer/cache
|
|
|
|
|
2016-07-01 20:05:20 +00:00
|
|
|
before_install:
|
2017-11-15 10:08:51 +00:00
|
|
|
- if [[ "${TRAVIS_OS_NAME}" == "osx" ]]; then /usr/bin/env bash bin/prepare_osx_env.sh ; fi
|
2017-11-22 21:16:10 +00:00
|
|
|
- if [[ $DISABLE_XDEBUG == "true" ]]; then phpenv config-rm xdebug.ini; fi
|
2016-07-01 20:05:20 +00:00
|
|
|
|
|
|
|
install:
|
2017-11-15 10:08:51 +00:00
|
|
|
- if [[ "${TRAVIS_OS_NAME}" == "osx" ]]; then /usr/bin/env bash bin/handle_brew_pkg.sh "${_PHP}" ; fi
|
2016-07-01 20:05:20 +00:00
|
|
|
- curl -s http://getcomposer.org/installer | php
|
2018-01-31 18:33:57 +00:00
|
|
|
- php composer.phar install --no-interaction --ignore-platform-reqs
|
2016-06-30 21:42:45 +00:00
|
|
|
|
|
|
|
script:
|
2017-11-22 21:16:10 +00:00
|
|
|
- vendor/bin/phpunit $PHPUNIT_FLAGS
|
2018-01-06 20:25:47 +00:00
|
|
|
- if [[ $STATIC_ANALYSIS != "" ]]; then composer check-cs; fi
|
|
|
|
- if [[ $STATIC_ANALYSIS != "" ]]; then composer phpstan; fi
|
2017-11-15 10:08:51 +00:00
|
|
|
|
|
|
|
after_success:
|
|
|
|
- |
|
|
|
|
if [[ $PHPUNIT_FLAGS != "" ]]; then
|
2018-02-14 18:24:48 +00:00
|
|
|
wget https://github.com/php-coveralls/php-coveralls/releases/download/v2.0.0/php-coveralls.phar
|
2018-02-16 06:25:24 +00:00
|
|
|
php php-coveralls.phar --verbose;
|
2017-11-15 10:08:51 +00:00
|
|
|
fi
|