-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path.travis.yml
35 lines (28 loc) · 996 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
sudo: false
cache:
directories:
- $HOME/.composer/cache/files
matrix:
include:
- php: 5.6
env: SYMFONY_VERSION='^2'
- php: 5.6
env: SYMFONY_VERSION='^3'
- php: 7.0
env: SYMFONY_VERSION='^3'
- php: 7.1
env: SYMFONY_VERSION='^3' PHPUNIT_ARGS='--testdox'
- php: 7.2
env: SYMFONY_VERSION='^3' COVERAGE='' PHPCS='' PHPSTAN='' PHPUNIT_ARGS='--testdox --coverage-text --coverage-clover=build/phpunit.coverage.xml'
before_install:
- if [ -z "${COVERAGE+x}" ];then echo 'disabling xdebug'; phpenv config-rm xdebug.ini || true;fi
before_script:
- composer require --dev --no-update dunglas/symfony-lock=$SYMFONY_VERSION
- composer update $COMPOSER_FLAGS --prefer-dist
script:
- vendor/bin/phpunit $PHPUNIT_ARGS --disallow-test-output --colors=always
- if [ -n "${PHPCS+x}" ];then php vendor/bin/phpcs;fi
- if [ -n "${PHPSTAN+x}" ];then sh .travis.analyze.sh ;fi
after_script:
- if [ -n "${COVERAGE+x}" ];then sh .travis.coverage.sh;fi