2012-12-30 21:31:19 +00:00
|
|
|
language: php
|
|
|
|
|
2017-06-16 17:09:13 -05:00
|
|
|
dist: trusty
|
2015-03-22 23:19:36 +00:00
|
|
|
sudo: false
|
|
|
|
|
|
|
|
cache:
|
|
|
|
directories:
|
2018-02-12 10:19:16 +01:00
|
|
|
- vendor
|
|
|
|
|
|
|
|
env:
|
|
|
|
- DEPENDENCIES=""
|
|
|
|
- DEPENDENCIES="--prefer-lowest --prefer-stable"
|
2015-03-22 23:19:36 +00:00
|
|
|
|
2012-12-30 21:31:19 +00:00
|
|
|
php:
|
2015-03-03 22:00:47 +00:00
|
|
|
- 7.0
|
2016-10-16 16:48:44 +01:00
|
|
|
- 7.1
|
2017-11-30 23:52:50 -02:00
|
|
|
- 7.2
|
2014-01-16 16:53:44 +00:00
|
|
|
|
2014-11-08 18:36:59 +00:00
|
|
|
install:
|
2018-02-12 10:19:16 +01:00
|
|
|
- composer update --no-interaction --prefer-dist $DEPENDENCIES
|
2014-05-03 11:18:09 +01:00
|
|
|
|
|
|
|
script:
|
2018-02-18 15:33:41 +00:00
|
|
|
- vendor/bin/phpunit --coverage-clover=coverage.clover
|
2018-02-18 21:17:32 +01:00
|
|
|
- vendor/bin/phpstan analyse -l 7 -c phpstan.neon src tests
|
2015-04-05 18:21:57 +01:00
|
|
|
|
2018-02-18 15:33:41 +00:00
|
|
|
after_script:
|
|
|
|
- wget https://scrutinizer-ci.com/ocular.phar
|
|
|
|
- php ocular.phar code-coverage:upload --format=php-clover coverage.clover
|
|
|
|
|
2014-12-11 14:25:35 +00:00
|
|
|
branches:
|
|
|
|
only:
|
2016-10-16 16:48:44 +01:00
|
|
|
- master
|