Skip to content

Commit

Permalink
Separated travis scripts for basic and advanced apps
Browse files Browse the repository at this point in the history
  • Loading branch information
samdark committed Aug 18, 2014
1 parent ff59e5f commit ed5b8af
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ script:
- vendor/bin/phpunit --verbose --coverage-clover=coverage.clover --exclude-group mssql,oci,wincache,xcache,zenddata
- |
if (php --version | grep -i HipHop > /dev/null); then
echo "skipping application tests on HHVM"
echo "Skipping basic application tests on HHVM"
else
cd apps/basic/web
php -S localhost:8080 > /dev/null 2>&1 &
Expand All @@ -63,14 +63,20 @@ script:
codecept run
BASIC_EXIT=$?
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
php -S localhost:8080 > /dev/null 2>&1 &
PHP_PID=$!
cd tests
codecept run
ADVANCED_EXIT=$?
kill -9 $PHP_PID
exit $BASIC_EXIT && $ADVANCED_EXIT
exit $ADVANCED_EXIT
fi
after_script:
Expand Down

0 comments on commit ed5b8af

Please sign in to comment.