forked from muspelheim/C3ChartsBundle
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
47 lines (39 loc) · 1.21 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
language: php
sudo: false
php:
- 7.0
- 7.1
- 7.2
- nightly
env:
- SYMFONY_VERSION=2.7.* # LTS (until 05/2019)
- SYMFONY_VERSION=2.8.* # LTS (until 11/2019)
- SYMFONY_VERSION=3.4.* # LTS (until 11/2021)
- SYMFONY_VERSION=4.0.* # (until 01/2019)
- SYMFONY_VERSION=4.1.* # (until 07/2019)
- SYMFONY_VERSION=dev-master
matrix:
fast_finish: true
exclude:
- php: 7
env: SYMFONY_VERSION=4.0.* # requires PHP ^7.1.3
- php: 7
env: SYMFONY_VERSION=4.1.* # requires PHP ^7.1.3
- php: 7
env: SYMFONY_VERSION=dev-master # requires PHP ^7.1.3
allow_failures:
- env: SYMFONY_VERSION=dev-master
- php: nightly
cache:
directories:
- $HOME/.composer/cache
before_install:
- composer self-update
- if [ "$DEPENDENCIES" == "dev" ]; then perl -pi -e 's/^}$/,"minimum-stability":"dev"}/' composer.json; fi;
- if [ "$SYMFONY_VERSION" != "" ]; then composer --no-update require symfony/symfony:${SYMFONY_VERSION}; fi;
install:
- composer update --no-interaction $COMPOSER_FLAGS
script:
- phpunit --coverage-text --coverage-clover=coverage.clover
- wget https://scrutinizer-ci.com/ocular.phar
- php ocular.phar code-coverage:upload --format=php-clover coverage.clover