16 lines
315 B
Bash
Raw Normal View History

2018-05-29 13:15:18 +03:00
#!/usr/bin/env bash
if [ -z $TRAVIS_BUILD_DIR ]; then
exit 0;
fi
PRESTASHOP_DIR=$TRAVIS_BUILD_DIR/../PrestaShop
2018-05-30 09:58:53 +03:00
if ! [ -z $BRANCH ]; then
phpunit
else
cd $PRESTASHOP_DIR
composer run-script create-test-db --timeout=0
php ../PrestaShop/vendor/bin/phpunit -c $TRAVIS_BUILD_DIR/phpunit.xml.dist
fi