mirror of
https://github.com/shlinkio/shlink.git
synced 2025-03-14 04:00:57 +03:00
Added CI config files
This commit is contained in:
parent
a9813b1ab9
commit
db9051dcde
5 changed files with 36 additions and 4 deletions
6
.scrutinizer.yml
Normal file
6
.scrutinizer.yml
Normal file
|
@ -0,0 +1,6 @@
|
|||
tools:
|
||||
external_code_coverage: true
|
||||
checks:
|
||||
php:
|
||||
code_rating: true
|
||||
duplication: true
|
26
.travis.yml
Normal file
26
.travis.yml
Normal 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
|
|
@ -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"
|
||||
}
|
||||
}
|
||||
|
|
|
@ -3,7 +3,7 @@ use Zend\Expressive\Container\ApplicationFactory;
|
|||
use Zend\Expressive\Helper;
|
||||
|
||||
return [
|
||||
|
||||
|
||||
'middleware_pipeline' => [
|
||||
'always' => [
|
||||
'middleware' => [
|
||||
|
|
|
@ -7,10 +7,10 @@ return [
|
|||
'name' => 'home',
|
||||
'path' => '/',
|
||||
'middleware' => function ($req, $resp) {
|
||||
|
||||
|
||||
},
|
||||
'allowed_methods' => ['GET'],
|
||||
],
|
||||
],
|
||||
|
||||
|
||||
];
|
||||
|
|
Loading…
Add table
Reference in a new issue