forked from PrestaShop/PrestaShop
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
70 lines (57 loc) · 1.56 KB
/
.travis.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
language: php
addons:
chrome: stable
apt:
packages:
- apache2
- postfix
- libapache2-mod-fastcgi
- libappindicator1
- fonts-liberation
cache:
directories:
- $HOME/.composer/cache
sudo: required
dist: trusty
php:
- 5.6
- 7.0
env:
global:
- SYMFONY_DEPRECATIONS_HELPER=disabled
matrix:
include:
- php: 7.1
# temporarily disabled
# env: EXTRA_TESTS=functional
before_install:
# 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
notifications:
hipchat: ec4e21c5eb82066ba8be5fd1afefde@1184657
script:
- composer install --prefer-dist --no-interaction --no-progress
- bash tests/check_file_syntax.sh
- bash travis-scripts/install-prestashop
- php bin/console lint:twig src
- php bin/console lint:twig app
- composer phpunit-legacy
- composer phpunit-admin
- composer phpunit-sf
- composer phpunit-controllers
- bash travis-scripts/install-prestashop
- bash ./travis-scripts/run-selenium-tests
- bash ./travis-scripts/run-functional-tests # Must run before starter theme
- bash ./travis-scripts/test-startertheme
after_script:
- sudo cat /var/log/apache2/error.log
after_failure:
- curl -L http://localhost/
- cat /etc/apache2/envvars
- cat /etc/apache2/sites-available/000-default.conf
- sudo cat /var/log/php-fpm.log
- sudo ls -l /var/log/apache2
- sudo cat /var/log/apache2/other_vhosts_access.log