-
Notifications
You must be signed in to change notification settings - Fork 26
/
.travis.yml
45 lines (36 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
---
sudo: false
dist: trusty
language: php
before_install:
- sh -c "if [ $TRAVIS_PHP_VERSION != hhvm ]; then echo 'sendmail_path = /bin/true' >> ~/.phpenv/versions/$(phpenv version-name)/etc/conf.d/travis.ini; fi"
- travis_retry composer self-update
- travis_retry composer global require --no-update consolidation/cgr:@stable
- travis_retry composer global require --no-update hirak/prestissimo:@stable
- travis_retry composer global update
- export PATH="$HOME/.composer/vendor/bin:$PATH"
- travis_retry cgr phpunit/phpunit ~5.7
- travis_retry cgr satooshi/php-coveralls ~1.0
install:
- sh -c "if [ '$SYMFONY_DEPS_VERSION' = '3.2' ]; then sed -i 's/~3.2/3.2.*@dev/g' composer.json; fi"
- sh -c "if [ '$SYMFONY_DEPS_VERSION' = '3.3' ]; then sed -i 's/~3.2/3.3.*@dev/g' composer.json; fi"
- travis_retry composer install --prefer-source
before_script:
- mkdir -p build/logs
- rm -rf app/cache/*/*
script:
- phpunit -c phpunit.xml.dist
after_script:
- travis_retry coveralls -v
matrix:
include:
- php: 5.6
- php: 5.6
env: SYMFONY_DEPS_VERSION=3.2
- php: 5.6
env: SYMFONY_DEPS_VERSION=3.3
- php: 7.0
- php: 7.1
- php: hhvm
allow_failures:
- php: hhvm