forked from dmaicher/doctrine-test-bundle
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
39 lines (32 loc) · 1.03 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
language: php
cache:
directories:
- $HOME/.composer/cache/files
services:
- mysql
php:
- 7.1
- 7.2
env:
- SYMFONY_VERSION="2.8.*"
- SYMFONY_VERSION="3.3.*"
- SYMFONY_VERSION="3.4.*"
- SYMFONY_VERSION="4.0.*"
- PHPUNIT_VERSION="6.*"
- PHPUNIT_VERSION="7.*"
matrix:
include:
- php: 7.1
env:
- TEST_COVERAGE=true
install:
- phpenv config-rm xdebug.ini || echo "xDebug not disabled"
- composer require symfony/symfony:${SYMFONY_VERSION:-"3.3.*"} phpunit/phpunit:${PHPUNIT_VERSION:-"7.*"}
script:
- cp tests/Functional/parameters.yml.dist tests/Functional/parameters.yml
- rm -rf tests/Functional/cache
- if [[ $TEST_COVERAGE ]]; then phpdbg -qrr vendor/bin/phpunit -c tests/ --coverage-clover ./build/logs/clover.xml; else vendor/bin/phpunit -c tests/ tests/; fi
- make phpstan
after_success:
- if [[ $TEST_COVERAGE ]]; then wget https://scrutinizer-ci.com/ocular.phar; fi
- if [[ $TEST_COVERAGE ]]; then php ocular.phar code-coverage:upload --format=php-clover ./build/logs/clover.xml; fi