forked from orfin/WellCommerce
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.travis.yml
More file actions
executable file
·43 lines (33 loc) · 1.45 KB
/
.travis.yml
File metadata and controls
executable file
·43 lines (33 loc) · 1.45 KB
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
language: php
sudo: true
php:
- 7.0
- 7.1
addons:
apt:
packages:
- apache2
- oracle-java8-set-default
before_install:
- if [[ $TRAVIS_PHP_VERSION = 7.* ]] ; then mkdir ~/bin && wget -O ~/bin/phpunit https://phar.phpunit.de/phpunit-5.7.phar && chmod +x ~/bin/phpunit; fi
before_script:
- curl -O https://artifacts.elastic.co/downloads/elasticsearch/elasticsearch-5.1.1.deb
- sudo dpkg -i --force-confnew elasticsearch-5.1.1.deb
- sudo service elasticsearch start
- sleep 10
- curl -v http://localhost:9200/
- 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=7000M" >> ~/.phpenv/versions/$(phpenv version-name)/etc/conf.d/travis.ini; fi;
- 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:install
- php app/console cache:warmup --env=test
script:
- phpunit -c phpunit.xml.dist
notifications:
email: false
slack: wellcommerce:5g1PqYtrlI40NVxaiuFzeG9z