Commit 2df4dff4 by Alexander Makarov

Proper exit codes for codeception tests

parent ef9d37d8
...@@ -58,16 +58,19 @@ script: ...@@ -58,16 +58,19 @@ script:
else else
cd apps/basic/web cd apps/basic/web
php -S localhost:8080 > /dev/null 2>&1 & php -S localhost:8080 > /dev/null 2>&1 &
PHPPID=$! PHP_PID=$!
cd ../tests cd ../tests
codecept run codecept run
kill -9 $PHPPID BASIC_EXIT=$?
kill -9 $PHP_PID
cd ../../advanced cd ../../advanced
php -S localhost:8080 > /dev/null 2>&1 & php -S localhost:8080 > /dev/null 2>&1 &
PHPPID=$! PHP_PID=$!
cd tests cd tests
codecept run codecept run
kill -9 $PHPPID ADVANCED_EXIT=$?
kill -9 $PHP_PID
exit $BASIC_EXIT && $ADVANCED_EXIT
fi fi
after_script: after_script:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment