-
Notifications
You must be signed in to change notification settings - Fork 117
/
.travis.yml
71 lines (62 loc) · 1.97 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
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
language: php
php:
- 5.3
- 5.4
- 5.5
- 5.6
- 7.0
- 7.1
- hhvm
env:
- SYMFONY_VERSION='2.7.*'
matrix:
include:
- php: 5.3
env: DEPS='lowest' SYMFONY_DEPRECATIONS_HELPER='2'
- php: 5.6
env: DEPS='unmodified'
- php: 5.6
env: SYMFONY_VERSION='2.7.*' PARAM_DB_DRIVER='pdo_sqlite'
- php: 5.6
env: SYMFONY_VERSION='2.8.*'
- php: 5.6
env: SYMFONY_VERSION='3.1.*'
- php: 5.6
env: SYMFONY_VERSION='3.2.*'
- php: 5.6
env: SYMFONY_VERSION='3.3.*'
- php: 5.6
env: SYMFONY_VERSION='3.4.*' MIN_STABILITY='dev'
allow_failures:
- env: SYMFONY_VERSION='3.4.*' MIN_STABILITY='dev'
fast_finish: true
install:
# set unlimited memory_limit
- 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}"
# disable Xdebug for better Composer performance
- if [ "${TRAVIS_PHP_VERSION}" != 'hhvm' ]; then mv ~/.phpenv/versions/$(phpenv version-name)/etc/conf.d/xdebug.ini xdebug.ini; fi;
# install dependencies using Composer
- bash .travis_install_dependencies.sh
# show installed dependencies
- composer show
before_script:
- mkdir -p build/logs
script:
# enable Xdebug for code coverage analysis
- if [ "${TRAVIS_PHP_VERSION}" != 'hhvm' ]; then mv xdebug.ini ~/.phpenv/versions/$(phpenv version-name)/etc/conf.d/xdebug.ini; fi;
# run PHPUnit
- vendor/bin/phpunit -v --coverage-clover build/logs/clover.xml
# upload code coverage data
- if [ "${TRAVIS_PHP_VERSION}" != 'hhvm' ]; then travis_retry wget -q https://github.com/satooshi/php-coveralls/releases/download/v1.0.1/coveralls.phar && travis_retry php coveralls.phar -v; fi;
notifications:
email:
on_success: always
on_failure: always
# use container-based infrastructure
sudo: false
# cache Composer's package cache
cache:
directories:
- $HOME/.composer/cache/files
- vendor