forked from doctrine/mongodb-odm
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
41 lines (35 loc) · 962 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
dist: xenial
sudo: required
language: php
env:
global:
- DEPLOYMENT=STANDALONE
- DRIVER_VERSION="stable"
- SERVER_DISTRO=ubuntu1604
- SERVER_VERSION=4.2.0
jobs:
include:
# Test sharded cluster functionality
- stage: Test
php: 7.3
env: DEPLOYMENT=SHARDED_CLUSTER_RS
script:
- ./vendor/bin/phpunit --group=sharding
# Test on replica sets
- stage: Test
php: 7.3
env: DEPLOYMENT=REPLICASET
before_install:
- mv ~/.phpenv/versions/$(phpenv version-name)/etc/conf.d/xdebug.ini{,.disabled} || echo "xdebug not available"
install:
- .build/setup_mongodb.sh
- sudo pip install mongo-orchestration
- sudo mongo-orchestration start
- .build/setup_mo.sh
- composer self-update
- pecl install -f mongodb-${DRIVER_VERSION}
- composer update ${COMPOSER_FLAGS}
- export DOCTRINE_MONGODB_SERVER=`cat /tmp/uri.txt`
- echo $DOCTRINE_MONGODB_SERVER
script:
- ./vendor/bin/phpunit