forked from doctrine/DoctrineMongoDBBundle
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
68 lines (54 loc) · 1.68 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
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
dist: xenial
language: php
sudo: false
cache:
directories:
- $HOME/.composer/cache
php:
- 7.2
- 7.3
- 7.4snapshot
services: mongodb
env:
global:
- DRIVER_VERSION="stable"
- COMPOSER_FLAGS=" -n --prefer-dist --prefer-stable"
- COMPOSER_MEMORY_LIMIT=-1
before_install:
- mv ~/.phpenv/versions/$(phpenv version-name)/etc/conf.d/xdebug.ini{,.disabled} || echo "xdebug not available"
- composer global require --no-progress --no-scripts --no-plugins symfony/flex dev-master
install:
- composer self-update
- pecl install -f mongodb-${DRIVER_VERSION}
- composer update ${COMPOSER_FLAGS}
script:
- ./vendor/bin/phpunit ${PHPUNIT_FLAGS}
jobs:
include:
# Tests the lowest set of dependencies
- php: 7.2
env: LOWEST DRIVER_VERSION="1.5.0" SYMFONY_DEPRECATIONS_HELPER=weak COMPOSER_FLAGS=" -n --prefer-lowest --prefer-stable --prefer-dist"
# Test against latest Symfony 4.3 stable
- php: 7.3
env: SYMFONY_REQUIRE="4.3.*"
# Test against latest Symfony 4.4 dev
- php: 7.3
env: SYMFONY_REQUIRE="4.4.*"
# Test against latest Symfony 5.0 dev
- php: 7.3
env: SYMFONY_REQUIRE="5.0.*"
# Test dev versions
- php: 7.3
if: type = cron
env: DEV COMPOSER_FLAGS="-n --prefer-dist"
- stage: Code Quality
env: CODING_STANDARDS
php: 7.2
script:
- ./vendor/bin/phpcs
- stage: Coverage
php: 7.3
env: COVERAGE PHPUNIT_FLAGS="--coverage-clover=coverage.clover"
before_script:
- mv ~/.phpenv/versions/$(phpenv version-name)/etc/conf.d/xdebug.ini{.disabled,}
- if [[ ! $(php -m | grep -si xdebug) ]]; then echo "xdebug required for coverage"; exit 1; fi