mirror of
https://github.com/yiisoft/yii2.git
synced 2025-11-11 19:20:01 +08:00
Got rid of variables, forced terminating PHP process by name before starting another server
This commit is contained in:
@@ -58,7 +58,6 @@ 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 &
|
||||||
PHP_PID=$!
|
|
||||||
cd ../tests
|
cd ../tests
|
||||||
codecept run
|
codecept run
|
||||||
fi
|
fi
|
||||||
@@ -66,10 +65,9 @@ script:
|
|||||||
if (php --version | grep -i HipHop > /dev/null); then
|
if (php --version | grep -i HipHop > /dev/null); then
|
||||||
echo "Skipping advanced application tests on HHVM"
|
echo "Skipping advanced application tests on HHVM"
|
||||||
else
|
else
|
||||||
kill -9 $PHP_PID
|
kill $(ps -ef | grep php | awk '{print $2}')
|
||||||
cd ../../advanced
|
cd ../../advanced
|
||||||
php -S localhost:8080 > /dev/null 2>&1 &
|
php -S localhost:8080 > /dev/null 2>&1 &
|
||||||
PHP_PID=$!
|
|
||||||
cd tests
|
cd tests
|
||||||
codecept run
|
codecept run
|
||||||
fi
|
fi
|
||||||
|
|||||||
Reference in New Issue
Block a user