forked from doctrine/DoctrineMongoDBBundle
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
44 lines (35 loc) · 926 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
37
38
39
40
41
42
43
44
dist: xenial
language: php
sudo: false
php:
- 7.2
- 7.3
- 7.4snapshot
env:
global:
- DRIVER_VERSION="stable"
- COMPOSER_FLAGS="--prefer-dist"
jobs:
include:
# Test against lowest dependencies with coverage
- stage: Test
php: 7.2
env: DRIVER_VERSION="1.5.0" COMPOSER_FLAGS="--prefer-dist --prefer-lowest" PHPUNIT_FLAGS="--coverage-clover=coverage.clover"
- stage: Code Quality
php: 7.2
env: DRIVER_VERSION="stable" COMPOSER_FLAGS="--prefer-dist"
script:
- vendor/bin/phpcs
cache:
directories:
- $HOME/.composer/cache
services: mongodb
install:
- composer self-update
- pecl install -f mongodb-${DRIVER_VERSION}
- composer update ${COMPOSER_FLAGS}
script:
- ./vendor/bin/phpunit ${PHPUNIT_FLAGS}
after_script:
- wget https://scrutinizer-ci.com/ocular.phar
- php ocular.phar code-coverage:upload --format=php-clover coverage.clover