-
-
Notifications
You must be signed in to change notification settings - Fork 3
/
.travis.yml
26 lines (26 loc) · 877 Bytes
/
.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
language: php
php:
- '7.0'
- '5.6'
- '5.5.9'
- '5.5'
- '5.4'
- hhvm
env:
matrix:
- PREFER_LOWEST=""
- PREFER_LOWEST="--prefer-lowest"
matrix:
allow_failures:
- php: hhvm
before_install:
- composer self-update
install:
- if [[ "$(phpenv version-name)" != "hhvm" ]]; then echo 'error_reporting = E_ALL & ~E_NOTICE & ~E_STRICT & ~E_DEPRECATED' >> ~/.phpenv/versions/$(phpenv version-name)/etc/conf.d/travis.ini; fi
- travis_retry composer update --no-interaction --prefer-source $PREFER_LOWEST
script:
- php vendor/bin/behat --config=.travis-behat.yml
- php vendor/bin/phpspec run -v --config=.travis-phpspec$([[ "$(phpenv version-name)" == "hhvm" ]] && echo -n "-hhvm").yml
- phpunit -v --color -c .travis-phpunit$([[ "$(phpenv version-name)" == "hhvm" ]] && echo -n "-hhvm").xml
after_success:
- bash <(curl -s https://codecov.io/bash)