mirror of
https://github.com/retailcrm/prestashop-module.git
synced 2025-03-02 19:33:14 +03:00
Apache settings
This commit is contained in:
parent
e5c329e898
commit
2011847b92
@ -19,6 +19,7 @@ matrix:
|
|||||||
|
|
||||||
before_script:
|
before_script:
|
||||||
- bash tests/bin/clone_prestashop.sh
|
- bash tests/bin/clone_prestashop.sh
|
||||||
|
- bash tests/bin/setup-apache.sh
|
||||||
- bash tests/bin/before_script.sh
|
- bash tests/bin/before_script.sh
|
||||||
|
|
||||||
script:
|
script:
|
||||||
|
@ -15,7 +15,6 @@ if [ -z $BRANCH ]; then
|
|||||||
cp tests-legacy/parameters.yml.travis app/config/parameters.yml
|
cp tests-legacy/parameters.yml.travis app/config/parameters.yml
|
||||||
fi
|
fi
|
||||||
|
|
||||||
(php -S localhost:80 &) 2> /dev/null > /dev/null
|
|
||||||
bash travis-scripts/install-prestashop
|
bash travis-scripts/install-prestashop
|
||||||
else
|
else
|
||||||
bash travis-scripts/install-prestashop.sh
|
bash travis-scripts/install-prestashop.sh
|
||||||
|
19
tests/bin/setup-apache.sh
Executable file
19
tests/bin/setup-apache.sh
Executable file
@ -0,0 +1,19 @@
|
|||||||
|
#!/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