mirror of
https://github.com/Llewellynvdm/php-ml.git
synced 2024-11-24 22:07:33 +00:00
6660645ecd
* composer: update dev dependencies * phpstan fixes * phpstan fixes * phpstan fixes * phpstan fixes * drop probably forgotten humbug configs * apply cs * fix cs bug * compsoer: add coding standard and phsptan dev friendly scripts * ecs: add skipped errors * cs: fix PHP 7.1 * fix cs * ecs: exclude strict fixer that break code * ecs: cleanup commented sets * travis: use composer scripts for testing to prevent duplicated setup
42 lines
1.1 KiB
YAML
42 lines
1.1 KiB
YAML
language: php
|
|
|
|
matrix:
|
|
fast_finish: true
|
|
|
|
include:
|
|
- os: linux
|
|
php: '7.1'
|
|
env: DISABLE_XDEBUG="true" STATIC_ANALYSIS="true"
|
|
|
|
- os: linux
|
|
php: '7.2'
|
|
env: PHPUNIT_FLAGS="--coverage-clover build/logs/clover.xml"
|
|
|
|
- os: osx
|
|
osx_image: xcode7.3
|
|
language: generic
|
|
env:
|
|
- _OSX=10.11
|
|
- _PHP: php71
|
|
|
|
before_install:
|
|
- if [[ "${TRAVIS_OS_NAME}" == "osx" ]]; then /usr/bin/env bash bin/prepare_osx_env.sh ; fi
|
|
- if [[ $DISABLE_XDEBUG == "true" ]]; then phpenv config-rm xdebug.ini; fi
|
|
|
|
install:
|
|
- if [[ "${TRAVIS_OS_NAME}" == "osx" ]]; then /usr/bin/env bash bin/handle_brew_pkg.sh "${_PHP}" ; fi
|
|
- curl -s http://getcomposer.org/installer | php
|
|
- php composer.phar install --dev --no-interaction --ignore-platform-reqs
|
|
|
|
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
|
|
wget https://github.com/satooshi/php-coveralls/releases/download/v1.0.1/coveralls.phar;
|
|
php coveralls.phar --verbose;
|
|
fi
|