-
Notifications
You must be signed in to change notification settings - Fork 1
/
.travis.yml
46 lines (41 loc) · 1.38 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
language: php
cache:
directories:
- "${HOME}/.composer/cache"
- "${HOME}/.ocularcache"
matrix:
fast_finish: false
include:
- env:
- "COMPOSER_FLAGS=\"--prefer-stable --prefer-lowest\""
- XDEBUG_OFF=false
php: 5.6
- env:
- XDEBUG_OFF=false
php: 5.6
- env:
- "PREFIX=\"phpdbg -qrr \""
- XDEBUG_OFF=true
php: 7.0
- env:
- "PREFIX=\"phpdbg -qrr \""
- XDEBUG_OFF=true
php: 7.1
- env:
- "PREFIX=\"phpdbg -qrr \""
- XDEBUG_OFF=true
php: nightly
before_install:
- if [ "$XDEBUG_OFF" == "true" ] ; then phpenv config-rm xdebug.ini || true ; fi
install:
- if [ ! -f "${HOME}/.ocularcache/ocular.phar" ] ; then wget https://scrutinizer-ci.com/ocular.phar -O ${HOME}/.ocularcache/ocular.phar ; else php ${HOME}/.ocularcache/ocular.phar self-update ; fi
- "composer install --no-interaction"
- "composer update $COMPOSER_FLAGS --no-interaction"
script:
- "composer validate"
- "./vendor/bin/php-cs-fixer fix --dry-run"
- "find src spec -name \"*.php\" -print0 | xargs -0 -n1 -P8 php -l"
- "${PREFIX} vendor/bin/phpspec run"
after_success:
- "travis_retry php vendor/bin/coveralls"
- php ${HOME}/.ocularcache/ocular.phar code-coverage:upload --repository=g/fitbug/guzzle-swagger-validation-middleware --access-token="${SC_KEY}" --format=php-clover coverage.xml