Commit ed5b8afb by Alexander Makarov

Separated travis scripts for basic and advanced apps

parent ff59e5fd
...@@ -54,7 +54,7 @@ script: ...@@ -54,7 +54,7 @@ script:
- vendor/bin/phpunit --verbose --coverage-clover=coverage.clover --exclude-group mssql,oci,wincache,xcache,zenddata - vendor/bin/phpunit --verbose --coverage-clover=coverage.clover --exclude-group mssql,oci,wincache,xcache,zenddata
- | - |
if (php --version | grep -i HipHop > /dev/null); then if (php --version | grep -i HipHop > /dev/null); then
echo "skipping application tests on HHVM" echo "Skipping basic application tests on HHVM"
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 &
...@@ -63,6 +63,12 @@ script: ...@@ -63,6 +63,12 @@ script:
codecept run codecept run
BASIC_EXIT=$? BASIC_EXIT=$?
kill -9 $PHP_PID kill -9 $PHP_PID
exit $BASIC_EXIT
fi
- |
if (php --version | grep -i HipHop > /dev/null); then
echo "Skipping advanced application tests on HHVM"
else
cd ../../advanced cd ../../advanced
php -S localhost:8080 > /dev/null 2>&1 & php -S localhost:8080 > /dev/null 2>&1 &
PHP_PID=$! PHP_PID=$!
...@@ -70,7 +76,7 @@ script: ...@@ -70,7 +76,7 @@ script:
codecept run codecept run
ADVANCED_EXIT=$? ADVANCED_EXIT=$?
kill -9 $PHP_PID kill -9 $PHP_PID
exit $BASIC_EXIT && $ADVANCED_EXIT 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