Merge pull request #47 from iyzoer/master

Fix tests
This commit is contained in:
Alex Lushpai 2019-07-18 15:06:40 +03:00 committed by GitHub
commit ac711b3de3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 28 additions and 1 deletions

View File

@ -1,6 +1,13 @@
language: php
sudo: false
addons:
apt:
packages:
- apache2
- libapache2-mod-fastcgi
sudo: required
dist: trusty
php:
- 5.6
@ -19,6 +26,7 @@ matrix:
before_script:
- bash tests/bin/clone_prestashop.sh
- bash tests/bin/setup-apache.sh
- bash tests/bin/before_script.sh
script:

19
tests/bin/setup-apache.sh Executable file
View 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