forked from pdepend/pdepend
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
52 lines (45 loc) · 1.61 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
47
48
49
50
51
52
language: php
matrix:
include:
- php: 5.3
dist: precise
env: DEPENDENCIES=low
- php: 5.4
env: DEPENDENCIES=low
- php: 5.5
env: SYMFONY_VERSION=^2.0
- php: 5.6
env: SYMFONY_VERSION=^2.0
- php: 5.6
env: SYMFONY_VERSION=^3.0
- php: 7.0
env: SYMFONY_VERSION=^3.0
- php: 7.1
env: SYMFONY_VERSION=^4.0
- php: 7.2
env: SYMFONY_VERSION=^4.0
- php: nightly
env: SYMFONY_VERSION=^4.0
allow_failures:
- php: nightly
fast_finish: true
sudo: false
env:
global:
TEST_CONFIG="phpunit.xml.dist"
before_script:
- composer self-update
- if [ "$SYMFONY_VERSION" != "" ]; then composer require "symfony/dependency-injection:${SYMFONY_VERSION}" --no-update; fi;
- if [ "$SYMFONY_VERSION" != "" ]; then composer require "symfony/filesystem:${SYMFONY_VERSION}" --no-update; fi;
- if [ "$SYMFONY_VERSION" != "" ]; then composer require "symfony/config:${SYMFONY_VERSION}" --no-update; fi;
- if [ $DEPENDENCIES = "low" ] ; then composer update --prefer-dist --prefer-lowest --prefer-stable ; fi
- if [ ! $DEPENDENCIES ] ; then composer update --prefer-dist ; fi
- composer install
script:
- vendor/bin/phpunit --configuration $TEST_CONFIG --colors --coverage-clover=coverage.xml
- bash <(curl -s https://codecov.io/bash) -f coverage.xml
after_script:
- wget https://scrutinizer-ci.com/ocular.phar
- php ocular.phar code-coverage:upload --format=php-clover coverage.xml
notifications:
irc: "irc.freenode.org#pdepend"