-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy path.travis.yml
38 lines (31 loc) · 1.01 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
sudo: false
language: php
cache:
directories:
- $HOME/.composer/cache/files
- $HOME/.phpunit
env:
global:
- SYMFONY_PHPUNIT_DIR="$HOME/.phpunit"
matrix:
fast_finish: true
include:
- php: 5.6
env: COMPOSER_OPTIONS="--prefer-lowest --prefer-stable"
- php: 5.6
env: validator=2.8.*
- php: 7.0
env: xdebug="yes"
- php: 7.1
- php: 7.2
env: SYMFONY_PHPUNIT_VERSION=7.5
before_install:
- if [[ "$xdebug" != "yes" ]]; then phpenv config-rm xdebug.ini; fi
- composer self-update
- if [ "$validator" != "" ]; then composer require --no-update symfony/validator:$validator; fi
install:
- composer update $COMPOSER_OPTIONS
script:
- if [[ "$xdebug" = "yes" ]]; then vendor/bin/simple-phpunit --coverage-clover=coverage.clover; else vendor/bin/simple-phpunit; fi
- if [[ "$xdebug" = "yes" ]]; then wget https://scrutinizer-ci.com/ocular.phar; fi
- if [[ "$xdebug" = "yes" ]]; then php ocular.phar code-coverage:upload --format=php-clover coverage.clover; fi