forked from PHP-CS-Fixer/PHP-CS-Fixer
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
35 lines (28 loc) · 873 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
35
language: php
matrix:
fast_finish: true
include:
- php: 5.3
env: 'COMPOSER_FLAGS="--prefer-stable --prefer-lowest"'
- php: 7.0
- php: hhvm
- php: 5.4
- php: 5.5
- php: 5.6
- php: 7.0
env: SYMFONY_VERSION="~2.8"
sudo: false
cache:
directories:
- $HOME/.composer/cache
before_install:
- git config --global github.accesstoken 5e7538aa415005c606ea68de2bbbade0409b4b8c
- 'if [ "$SYMFONY_VERSION" != "" ]; then sed -i "s/\"symfony\/\([^\"]*\)\": \"[^\"]*\"/\"symfony\/\1\": \"$SYMFONY_VERSION\"/g" composer.json; fi'
install:
- travis_retry composer update $COMPOSER_FLAGS --no-interaction
script:
- composer test-ci
- phpenv config-rm xdebug.ini || return 0
- php php-cs-fixer --diff --dry-run -v fix
after_success:
- php vendor/bin/coveralls -v