forked from php-xapi/xapi
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
48 lines (39 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
39
40
41
42
43
44
45
46
47
48
sudo: false
language: php
cache:
directories:
- $HOME/.composer/cache/files
env:
global:
- SYMFONY_VERSION=""
- deps=""
php:
- 5.3
- 5.4
- 5.5
- 5.6
matrix:
fast_finish: true
include:
- php: 5.3
env: deps="low"
- php: 5.6
env: SYMFONY_VERSION="2.3.x"
- php: 5.6
env: SYMFONY_VERSION="2.6.x"
- php: 5.6
env: SYMFONY_VERSION="2.7.x@dev"
allow_failures:
- env: deps="low"
services:
- mongodb
before_install:
- echo "extension = mongo.so" >> ~/.phpenv/versions/$(phpenv version-name)/etc/php.ini
- if [ "$SYMFONY_VERSION" != "" ]; then composer require symfony/symfony:${SYMFONY_VERSION} --dev --no-update; fi
install:
- if [ "$deps" = "low" ]; then composer update --prefer-lowest --prefer-stable; fi
- if [ "$deps" = "" ]; then composer update; fi
script:
- ./vendor/bin/phpunit --coverage-clover=coverage.clover
- wget https://scrutinizer-ci.com/ocular.phar
- php ocular.phar code-coverage:upload --format=php-clover coverage.clover