forked from alcaeus/mongo-php-adapter
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
36 lines (29 loc) · 801 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
sudo: false
language: php
php:
- 5.6
- 7.0
- 7.1
env:
- DRIVER_VERSION=stable
matrix:
include:
- php: 5.6
env: DRIVER_VERSION=stable LEGACY_DRIVER_VERSION=stable
- php: 5.6
env: DRIVER_VERSION=stable COMPOSER_FLAGS="--prefer-dist --prefer-lowest"
addons:
apt:
sources:
- mongodb-3.2-precise
packages:
- mongodb-org-server
before_script:
- pecl install -f mongodb-${DRIVER_VERSION}
- composer update ${COMPOSER_FLAGS}
- if [ "x$LEGACY_DRIVER_VERSION" != "x" ]; then yes '' | pecl -q install -f mongo-${LEGACY_DRIVER_VERSION}; fi
script:
- ./vendor/bin/phpunit --coverage-clover=coverage.clover
after_script:
- wget https://scrutinizer-ci.com/ocular.phar
- php ocular.phar code-coverage:upload --format=php-clover coverage.clover