forked from sensiolabs/SensioFrameworkExtraBundle
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
42 lines (34 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
language: php
sudo: false
cache:
directories:
- $HOME/.composer/cache
- .phpunit
php:
- 5.5
- 5.6
- 7.0
matrix:
include:
- php: 7.0
env: deps=low
# Use the newer stack for HHVM as HHVM does not support Precise anymore since a long time and so Precise has an outdated version
- php: hhvm-3.12
sudo: required
dist: trusty
group: edge
fast_finish: true
env:
global:
- deps=no
before_install:
- export SYMFONY_PHPUNIT_DIR="$(pwd)/.phpunit"
- if [[ ! $TRAVIS_PHP_VERSION = hhvm* ]]; then INI_FILE=~/.phpenv/versions/$(phpenv version-name)/etc/conf.d/travis.ini; else INI_FILE=/etc/hhvm/php.ini; fi
- echo memory_limit = -1 >> $INI_FILE
- if [[ ! $TRAVIS_PHP_VERSION = hhvm* ]]; then phpenv config-rm xdebug.ini || echo "xdebug not available"; fi
install:
- if [[ "$TRAVIS_PHP_VERSION" == "5.3" ]]; then composer remove --dev --no-update symfony/psr-http-message-bridge zendframework/zend-diactoros; fi;
- if [ "$deps" = "no" ]; then composer install; fi;
- if [ "$deps" = "low" ]; then composer --prefer-lowest --prefer-stable update; fi;
script:
- ./vendor/bin/simple-phpunit