2013-10-21 22:46:31 +00:00
|
|
|
language: php
|
2019-04-09 01:35:23 +00:00
|
|
|
sudo: required
|
2013-10-21 22:46:31 +00:00
|
|
|
php:
|
|
|
|
- 5.5
|
2014-04-12 17:13:37 +00:00
|
|
|
- 5.6
|
2017-03-16 00:42:06 +00:00
|
|
|
- 7.0
|
|
|
|
- 7.1
|
2017-12-18 14:48:49 +00:00
|
|
|
- 7.2
|
2019-04-09 01:35:23 +00:00
|
|
|
- 7.3
|
2019-12-30 04:28:55 +00:00
|
|
|
- 7.4snapshot
|
2016-05-11 00:26:44 +00:00
|
|
|
|
2019-04-09 01:35:23 +00:00
|
|
|
env:
|
|
|
|
global:
|
|
|
|
- RUN_PHPSTAN="FALSE"
|
2014-04-12 17:13:37 +00:00
|
|
|
|
2019-04-09 01:35:23 +00:00
|
|
|
matrix:
|
|
|
|
include:
|
|
|
|
- name: 'PHPStan'
|
|
|
|
php: 7.2
|
|
|
|
env: RUN_PHPSTAN="TRUE"
|
|
|
|
fast_finish: true
|
|
|
|
allow_failures:
|
|
|
|
- php: 5.5
|
|
|
|
|
|
|
|
install:
|
2019-12-30 04:28:55 +00:00
|
|
|
- if [ $RUN_PHPSTAN == "TRUE" ]; then wget https://github.com/phpstan/phpstan/releases/download/0.11.8/phpstan.phar; fi
|
2013-10-21 22:46:31 +00:00
|
|
|
|
2016-05-11 00:26:44 +00:00
|
|
|
before_script:
|
|
|
|
- composer install
|
2013-10-21 22:46:31 +00:00
|
|
|
|
2019-04-09 01:35:23 +00:00
|
|
|
script:
|
|
|
|
- if [ $RUN_PHPSTAN == "FALSE" ]; then ./bin/phpunit --configuration tests/phpunit.xml --coverage-clover=coverage.xml; fi
|
|
|
|
- if [ $RUN_PHPSTAN == "TRUE" ]; then php phpstan.phar analyse -c phpstan.neon lib; fi
|
|
|
|
|
|
|
|
after_success:
|
|
|
|
- bash <(curl -s https://codecov.io/bash)
|
|
|
|
|
2016-05-11 00:26:44 +00:00
|
|
|
cache:
|
|
|
|
directories:
|
|
|
|
- $HOME/.composer/cache
|