mirror of
https://github.com/retailcrm/prestashop-module.git
synced 2025-03-02 19:33:14 +03:00
update Makefile
This commit is contained in:
parent
97b8935764
commit
88f161fdc4
5
Makefile
5
Makefile
@ -20,9 +20,10 @@ delete_archive:
|
|||||||
|
|
||||||
composer: clone_prestashop
|
composer: clone_prestashop
|
||||||
ifeq ($(COMPOSER_IN_TESTS),1)
|
ifeq ($(COMPOSER_IN_TESTS),1)
|
||||||
@cd $(ROOT_DIR)/../PrestaShop/tests && composer install
|
@cd $(PRESTASHOP_DIR) && git checkout $(BRANCH)
|
||||||
|
@cd $(PRESTASHOP_DIR)/tests && composer install
|
||||||
else
|
else
|
||||||
@cd $(ROOT_DIR)/../PrestaShop && composer install --prefer-dist --no-interaction --no-progress
|
@cd $(PRESTASHOP_DIR) && composer install --prefer-dist --no-interaction --no-progress
|
||||||
endif
|
endif
|
||||||
|
|
||||||
clone_prestashop:
|
clone_prestashop:
|
||||||
|
@ -1,21 +0,0 @@
|
|||||||
#!/usr/bin/env bash
|
|
||||||
|
|
||||||
if [ -z $TRAVIS_BUILD_DIR ]; then
|
|
||||||
exit 0;
|
|
||||||
fi
|
|
||||||
|
|
||||||
PRESTASHOP_DIR=$TRAVIS_BUILD_DIR/../PrestaShop
|
|
||||||
|
|
||||||
cd $PRESTASHOP_DIR
|
|
||||||
|
|
||||||
if [ -z $BRANCH ]; then
|
|
||||||
if [ -f "tests/parameters.yml.travis" ]; then
|
|
||||||
cp tests/parameters.yml.travis app/config/parameters.yml
|
|
||||||
else
|
|
||||||
cp tests-legacy/parameters.yml.travis app/config/parameters.yml
|
|
||||||
fi
|
|
||||||
|
|
||||||
bash travis-scripts/install-prestashop
|
|
||||||
else
|
|
||||||
bash travis-scripts/install-prestashop.sh
|
|
||||||
fi
|
|
@ -1,19 +0,0 @@
|
|||||||
#!/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;
|
|
||||||
cd tests
|
|
||||||
composer install
|
|
||||||
else
|
|
||||||
composer install --prefer-dist --no-interaction --no-progress
|
|
||||||
fi
|
|
@ -1,15 +0,0 @@
|
|||||||
#!/usr/bin/env bash
|
|
||||||
|
|
||||||
if [ -z $TRAVIS_BUILD_DIR ]; then
|
|
||||||
exit 0;
|
|
||||||
fi
|
|
||||||
|
|
||||||
PRESTASHOP_DIR=$TRAVIS_BUILD_DIR/../PrestaShop
|
|
||||||
|
|
||||||
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
|
|
@ -1,19 +0,0 @@
|
|||||||
#!/bin/bash
|
|
||||||
|
|
||||||
PRESTASHOP_DIR=$TRAVIS_BUILD_DIR/../PrestaShop
|
|
||||||
|
|
||||||
cd $PRESTASHOP_DIR
|
|
||||||
|
|
||||||
bash travis-scripts/setup-php-fpm.sh
|
|
||||||
|
|
||||||
echo "* Preparing Apache ...";
|
|
||||||
|
|
||||||
sudo a2enmod rewrite actions fastcgi alias
|
|
||||||
|
|
||||||
# Use default config
|
|
||||||
sudo cp -f tests/travis-ci-apache-vhost /etc/apache2/sites-available/000-default.conf
|
|
||||||
sudo sed -e "s?%PRESTASHOP_DIR%?$(pwd)?g" --in-place /etc/apache2/sites-available/000-default.conf
|
|
||||||
sudo chmod 777 -R $HOME
|
|
||||||
|
|
||||||
# Starting Apache
|
|
||||||
sudo service apache2 restart
|
|
Loading…
x
Reference in New Issue
Block a user