prestashop-module/tests/bin/clone_prestashop.sh

20 lines
348 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
cd ..
git clone https://github.com/PrestaShop/PrestaShop
cd PrestaShop
if ! [ -z $BRANCH ]; then
git checkout $BRANCH;
2018-05-30 09:58:53 +03:00
cd tests
composer install
2018-05-29 13:15:18 +03:00
else
composer install --prefer-dist --no-interaction --no-progress
fi