forked from orfin/WellCommerce
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
executable file
·42 lines (31 loc) · 1.21 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
language: php
sudo: false
php:
- 7.0
- 7.1
services:
- elasticsearch
addons:
apt:
packages:
- apache2
before_script:
- sleep 10
- phpenv config-rm xdebug.ini
- if [[ $TRAVIS_PHP_VERSION = 7.* ]] ; then echo "zend.enable_gc = 0" >> ~/.phpenv/versions/$(phpenv version-name)/etc/php.ini; fi;
- if [[ $TRAVIS_PHP_VERSION = 7.* ]] ; then echo "apc.enabled = 1" >> ~/.phpenv/versions/$(phpenv version-name)/etc/php.ini; fi;
- if [[ $TRAVIS_PHP_VERSION = 7.* ]] ; then echo "memory_limit=4096M" >> ~/.phpenv/versions/$(phpenv version-name)/etc/conf.d/travis.ini; fi;
- mysql -e 'CREATE DATABASE travis;'
- cp app/config/parameters.yml.travis app/config/parameters.yml
- composer self-update
- if [[ $TRAVIS_PHP_VERSION = 7.* ]] ; then composer install --no-interaction --prefer-dist; fi;
- php app/console cache:clear --env=test
- php app/console wellcommerce:app:install
- php app/console cache:warmup --env=test
- wget http://get.sensiolabs.org/security-checker.phar
script:
- phpunit -c phpunit.xml.dist
- php security-checker.phar security:check composer.lock
notifications:
email: false
slack: wellcommerce:5g1PqYtrlI40NVxaiuFzeG9z