Newer
Older
chrome: stable
apt:
packages:
- apache2
- postfix
- libapache2-mod-fastcgi
- libappindicator1
- fonts-liberation
sudo: required
dist: trusty
global:
- SYMFONY_DEPRECATIONS_HELPER=disabled
matrix:
- PRESTASHOP_TEST_TYPE=lint
- PRESTASHOP_TEST_TYPE=unit
- PRESTASHOP_TEST_TYPE=e2e
- php: 7.2
env: EXTRA_DEPS=phpHigh EXTRA_TESTS=functional PRESTASHOP_TEST_TYPE=unit
# Avoid Composer authentication issues
- if [[ $TRAVIS_REPO_SLUG = PrestaShop/PrestaShop ]]; then cp travis-scripts/.composer-auth.json ~/.composer/auth.json; fi;
# Apache & php-fpm configuration
- bash travis-scripts/setup-php-fpm.sh
- bash travis-scripts/setup-apache.sh
# PrestaShop configuration
- cp tests/parameters.yml.travis app/config/parameters.yml
hipchat: ec4e21c5eb82066ba8be5fd1afefde@1184657
- if [ $EXTRA_DEPS = "phpHigh" ]; then
composer update --ignore-platform-reqs;
else
composer install --prefer-dist --no-interaction --no-progress;
fi
- if [ $PRESTASHOP_TEST_TYPE = "lint" ]; then
bash tests/check_file_syntax.sh;
fi
- if [ $PRESTASHOP_TEST_TYPE = "unit" ]; then
after_script:
- sudo cat /var/log/apache2/error.log
after_failure:
- cat /etc/apache2/envvars
- cat /etc/apache2/sites-available/000-default.conf
- sudo cat /var/log/php-fpm.log
- if [ ! -z "$PRESTASTHOP_SCREENHOST" ]; then bash ./travis-scripts/base64-screenshots; fi # As we cannot upload file, we display the base64 encoded content of the screenshots
- cat $TRAVIS_BUILD_DIR/var/log/dev.log