mirror of
https://github.com/shlinkio/shlink.git
synced 2025-02-25 18:45:27 -06:00
Added output logs for swoole during API tests
This commit is contained in:
parent
11a383b7e5
commit
6caeb11598
@ -4,7 +4,10 @@ export DB_DRIVER=postgres
|
|||||||
export TEST_ENV=api
|
export TEST_ENV=api
|
||||||
export GENERATE_COVERAGE=${GENERATE_COVERAGE:-"no"}
|
export GENERATE_COVERAGE=${GENERATE_COVERAGE:-"no"}
|
||||||
|
|
||||||
|
# Reset logs
|
||||||
rm -rf data/log/api-tests
|
rm -rf data/log/api-tests
|
||||||
|
mkdir data/log/api-tests
|
||||||
|
touch data/log/api-tests/output.log
|
||||||
|
|
||||||
# Try to stop server just in case it hanged in last execution
|
# Try to stop server just in case it hanged in last execution
|
||||||
vendor/bin/laminas mezzio:swoole:stop
|
vendor/bin/laminas mezzio:swoole:stop
|
||||||
|
@ -109,6 +109,7 @@ return [
|
|||||||
'process-name' => 'shlink_test',
|
'process-name' => 'shlink_test',
|
||||||
'options' => [
|
'options' => [
|
||||||
'pid_file' => sys_get_temp_dir() . '/shlink-test-swoole.pid',
|
'pid_file' => sys_get_temp_dir() . '/shlink-test-swoole.pid',
|
||||||
|
'log_file' => __DIR__ . '/../../data/log/api-tests/output.log',
|
||||||
'enable_coroutine' => false,
|
'enable_coroutine' => false,
|
||||||
],
|
],
|
||||||
],
|
],
|
||||||
|
Loading…
Reference in New Issue
Block a user