-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
55 lines (45 loc) · 1.26 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
language: php
sudo: false
cache:
directories:
- $HOME/.composer/cache
- vendor
env:
global:
- COMPOSER_LOWEST=""
matrix:
include:
- php: 5.5
- php: 5.6
env: COMPOSER_LOWEST=""
- php: 5.6
env: COMPOSER_LOWEST="--prefer-lowest"
- php: 7
- php: hhvm
fast_finish: true
allow_failures:
- php: hhvm
addons:
apt:
packages:
- language-pack-fr
- language-pack-en
before_install:
# Disable XDebug speed up test execution. (Ignore failures if platform does not had the extension installed)
- phpenv config-rm xdebug.ini || return 0
- echo "extension=mongo.so" >> ~/.phpenv/versions/$(phpenv version-name)/etc/php.ini || return 0
- echo "memory_limit=2G" >> ~/.phpenv/versions/$(phpenv version-name)/etc/conf.d/travis.ini || return 0
install:
- travis_retry composer self-update
- travis_retry composer install --ignore-platform-reqs
- travis_retry php -dmemory_limit=3G `which composer` update symfony/framework-bundle $COMPOSER_LOWEST --ignore-platform-reqs
- composer info -i
script:
- phpunit --exclude-group=none
branches:
only:
- master
- develop
services:
- mongodb
- elasticsearch