From 34bc23657e23134bb5447b08d3389719b70549a4 Mon Sep 17 00:00:00 2001 From: Alexander Makarov Date: Tue, 19 Aug 2014 01:59:09 +0400 Subject: [PATCH] Got rid of variables, forced terminating PHP process by name before starting another server --- .travis.yml | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/.travis.yml b/.travis.yml index 6e47a39231c..654477473ea 100644 --- a/.travis.yml +++ b/.travis.yml @@ -58,7 +58,6 @@ script: else cd apps/basic/web php -S localhost:8080 > /dev/null 2>&1 & - PHP_PID=$! cd ../tests codecept run fi @@ -66,10 +65,9 @@ script: if (php --version | grep -i HipHop > /dev/null); then echo "Skipping advanced application tests on HHVM" else - kill -9 $PHP_PID + kill $(ps -ef | grep php | awk '{print $2}') cd ../../advanced php -S localhost:8080 > /dev/null 2>&1 & - PHP_PID=$! cd tests codecept run fi