forked from Incenteev/ParameterHandler
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
36 lines (27 loc) · 932 Bytes
/
.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
language: php
sudo: false
cache:
directories:
- $HOME/.composer/cache/files
- $HOME/.phpunit-bridge
env:
global:
- SYMFONY_PHPUNIT_DIR=$HOME/.phpunit-bridge
- SYMFONY_PHPUNIT_REMOVE='' # don't remove prophecy
php: [7.2, 7.1, 7.0, 5.6, 5.5, 5.4]
matrix:
include:
- php: 7.2
env: COMPOSER_FLAGS='--prefer-lowest --prefer-stable'
- php: 5.3
dist: precise
- php: 7.2
env: STABILITY=dev
before_install:
- if [[ -v $STABILITY ]]; then composer config minimum-stability $STABILITY; fi;
install:
- composer update --prefer-dist --no-interaction $COMPOSER_FLAGS
- vendor/bin/simple-phpunit install
script: vendor/bin/simple-phpunit --coverage-text --coverage-clover=coverage.clover
after_script:
- wget https://scrutinizer-ci.com/ocular.phar && php ocular.phar code-coverage:upload --format=php-clover coverage.clover