php-ml/.travis.yml

39 lines
929 B
YAML
Raw Permalink Normal View History

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:
2017-11-13 15:54:04 +00:00
- os: linux
php: '7.2'
env: PHPUNIT_FLAGS="--coverage-clover build/logs/clover.xml" DISABLE_XDEBUG="true" STATIC_ANALYSIS="true"
- os: linux
php: '7.3'
2017-11-13 15:54:04 +00:00
- os: linux
php: '7.4'
cache:
directories:
- $HOME/.composer/cache
2016-07-01 20:05:20 +00:00
before_install:
- if [[ $DISABLE_XDEBUG == "true" ]]; then phpenv config-rm xdebug.ini; fi
2016-07-01 20:05:20 +00:00
install:
- curl -s http://getcomposer.org/installer | php
- php composer.phar install --no-interaction --ignore-platform-reqs
2016-06-30 21:42:45 +00:00
script:
- vendor/bin/phpunit $PHPUNIT_FLAGS
- if [[ $STATIC_ANALYSIS != "" ]]; then composer check-cs; fi
- if [[ $STATIC_ANALYSIS != "" ]]; then composer phpstan; fi
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
php php-coveralls.phar --verbose;
fi