-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy path.travis.yml
More file actions
36 lines (29 loc) · 892 Bytes
/
.travis.yml
File metadata and controls
36 lines (29 loc) · 892 Bytes
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
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: 7.0
env: xdebug="yes" PHPUNIT_OPTIONS="--coverage-clover=coverage.clover"
- 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
install:
- composer update $COMPOSER_OPTIONS
- vendor/bin/simple-phpunit install
script:
- vendor/bin/simple-phpunit $PHPUNIT_OPTIONS
- 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