mirror of
https://github.com/Llewellynvdm/php-ml.git
synced 2024-11-24 13:57:33 +00:00
8ac013b2e4
* Update .travis.yml * remove coverage-clover for 7.2 * move coverage-clover to 7.2
47 lines
1.1 KiB
YAML
47 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: linux
|
|
php: '7.3'
|
|
|
|
- os: osx
|
|
osx_image: xcode7.3
|
|
language: generic
|
|
env:
|
|
- _OSX=10.11
|
|
|
|
cache:
|
|
directories:
|
|
- $HOME/.composer/cache
|
|
|
|
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:
|
|
- curl -s http://getcomposer.org/installer | php
|
|
- php composer.phar install --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/php-coveralls/php-coveralls/releases/download/v2.0.0/php-coveralls.phar
|
|
php php-coveralls.phar --verbose;
|
|
fi
|