-
Notifications
You must be signed in to change notification settings - Fork 8
/
.travis.yml
54 lines (45 loc) · 1.2 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
language: php
sudo: false
dist: precise
cache:
directories:
- ~/.composer/cache
services:
- elasticsearch
matrix:
include:
- env: MONGO=2.6.5.5
php: 5.6
addons:
apt:
packages:
- libav-tools
- ghostscript
- mongodb-org-server
sources:
- mongodb-upstart
- env: MONGOPHP=3.0.5.6
php: 5.6
addons:
apt:
packages:
- libav-tools
- mongodb-org-server
sources:
- mongodb-3.0-precise
before_install:
- printf "\n" |pecl install imagick
- printf "\n" |pecl install mongo
- phpenv config-add .travis.php.ini
install:
- cp app/config/parameters.yml.travis app/config/parameters.yml
- composer install --prefer-dist
before_script:
- until nc -z localhost 27017; do echo Waiting for MongoDB; sleep 1; done
- php app/console orchestra:mongodb:fixtures:load --type=functional -e=test
- php app/console orchestra:elastica:index:create -e=test
- php app/console orchestra:elastica:schema:create -e=test
- php app/console orchestra:elastica:populate -e=test
script:
- ./bin/phpunit --testsuite=unit
- ./bin/phpunit --testsuite=functional