Added api test to test:ci command

This commit is contained in:
Alejandro Celaya 2019-01-26 10:59:24 +01:00
parent 22d61fead7
commit fa753ad6fb
2 changed files with 6 additions and 1 deletions

View File

@ -108,7 +108,8 @@
],
"test:ci": [
"@test:unit:ci",
"@test:db"
"@test:db",
"@test:api"
],
"test:unit": "phpdbg -qrr vendor/bin/phpunit --order-by=random --coverage-php build/coverage-unit.cov",
"test:unit:ci": "phpdbg -qrr vendor/bin/phpunit --order-by=random --coverage-php build/coverage-unit.cov --coverage-clover=build/clover.xml --coverage-xml=build/coverage-xml --log-junit=build/phpunit.junit.xml",

View File

@ -4,12 +4,16 @@ declare(strict_types=1);
namespace ShlinkioTest\Shlink;
use GuzzleHttp\Client;
use Zend\ConfigAggregator\ConfigAggregator;
use Zend\ServiceManager\Factory\InvokableFactory;
use function realpath;
use function sys_get_temp_dir;
return [
'debug' => true,
ConfigAggregator::ENABLE_CACHE => false,
'zend-expressive-swoole' => [
'swoole-http-server' => [
'port' => 9999,