forked from zendframework/zend-diagnostics
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
34 lines (26 loc) · 782 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
27
28
29
30
31
32
33
34
language: php
services:
- redis-server
- rabbitmq
sudo: false
cache:
directories:
- $HOME/.composer/cache
php:
- 5.3
- 5.3.3
- 5.4
- 5.5
- 5.6
before_install:
- composer self-update
- phpenv config-rm xdebug.ini
- if [[ "$TRAVIS_PHP_VERSION" != "5.3" && "$TRAVIS_PHP_VERSION" != "5.3.3" ]]; then composer require --no-update guzzlehttp/guzzle:~4; fi
- if [ "$TRAVIS_PHP_VERSION" = "5.6" ]; then composer require --no-update fabpot/php-cs-fixer:1.9.*; fi
install: composer update $COMPOSER_FLAGS --prefer-dist
script:
- ./vendor/bin/phpunit -c ./tests/ --coverage-text
- if [ "$TRAVIS_PHP_VERSION" = "5.6" ]; then ./vendor/bin/php-cs-fixer fix -v --dry-run --level=psr2 .; fi
notifications:
irc: "irc.freenode.org#zftalk.dev"
email: false