Added CI config files

This commit is contained in:
Alejandro Celaya 2016-04-17 19:34:16 +02:00
parent a9813b1ab9
commit db9051dcde
5 changed files with 36 additions and 4 deletions

6
.scrutinizer.yml Normal file
View File

@ -0,0 +1,6 @@
tools:
external_code_coverage: true
checks:
php:
code_rating: true
duplication: true

26
.travis.yml Normal file
View File

@ -0,0 +1,26 @@
language: php
branches:
only:
- master
- develop
php:
- 5.5
- 5.6
- 7
- hhvm
before_script:
- composer self-update
- composer install --no-interaction
script:
- mkdir build
- composer check
after_script:
- wget https://scrutinizer-ci.com/ocular.phar
- php ocular.phar code-coverage:upload --format=php-clover build/clover.xml
sudo: false

View File

@ -46,7 +46,7 @@
"cs": "phpcs",
"cs-fix": "phpcbf",
"serve": "php -S 0.0.0.0:8000 -t public/",
"test": "phpunit",
"test": "phpunit --coverage-clover build/clover.xml",
"pretty-test": "phpunit --coverage-html build/coverage"
}
}

View File

@ -3,7 +3,7 @@ use Zend\Expressive\Container\ApplicationFactory;
use Zend\Expressive\Helper;
return [
'middleware_pipeline' => [
'always' => [
'middleware' => [

View File

@ -7,10 +7,10 @@ return [
'name' => 'home',
'path' => '/',
'middleware' => function ($req, $resp) {
},
'allowed_methods' => ['GET'],
],
],
];