forked from mongodb/mongo-php-library
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
78 lines (72 loc) · 2.15 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
69
70
71
72
73
74
75
76
77
78
language: php
dist: trusty
sudo: false
services:
- mongodb
env:
global:
- DRIVER_VERSION=stable SERVER_VERSION=3.4
addons:
apt:
packages: &common_packages
- gdb
matrix:
fast_finish: true
include:
- php: 5.5
env: &common_env DRIVER_VERSION=stable SERVER_VERSION=3.4
addons: &common_addons
apt:
sources: [ mongodb-3.4-precise ]
packages: [ mongodb-org, *common_packages ]
- php: 5.6
env: *common_env
addons: *common_addons
- php: 7.0
env: *common_env
addons: *common_addons
- php: 7.1
env: *common_env
addons: *common_addons
- php: 7.2
env: *common_env
addons: *common_addons
- php: 7.0
env: DRIVER_VERSION=1.2.0 SERVER_VERSION=2.4
addons:
apt:
sources: [ mongodb-upstart ]
packages: [ mongodb-10gen, *common_packages ]
- php: 7.0
env: DRIVER_VERSION=1.2.0 SERVER_VERSION=2.6
addons:
apt:
sources: [ mongodb-upstart ]
packages: [ mongodb-org, *common_packages ]
- php: 7.0
env: DRIVER_VERSION=1.2.0 SERVER_VERSION=3.0
addons:
apt:
sources: [ mongodb-3.0-precise ]
packages: [ mongodb-org, *common_packages ]
- php: 7.0
env: DRIVER_VERSION=1.2.0 SERVER_VERSION=3.2
addons:
apt:
sources: [ mongodb-3.2-precise ]
packages: [ mongodb-org, *common_packages ]
- php: 7.0
env: DRIVER_VERSION=devel SERVER_VERSION=3.4
addons: *common_addons
before_script:
- mongod --version
- mongo --eval 'var v = db.runCommand({buildInfo:1}).versionArray; if ((v[0] == 3 && v[1] >= 4) || v[0] >= 4) db.adminCommand({setFeatureCompatibilityVersion:"3.4"});'
- pecl install -f mongodb-${DRIVER_VERSION}
- php --ri mongodb
- composer install --dev --no-interaction --prefer-source
- ulimit -c
- ulimit -c unlimited -S
script:
- ./vendor/bin/phpunit --debug || RESULT=$?
- for i in $(find ./ -maxdepth 1 -name 'core*' -print); do gdb `php -r 'echo PHP_BINARY;'` core* -ex "thread apply all bt" -ex "set pagination 0" -batch; done;
- if [[ ${RESULT} != 0 ]]; then exit $RESULT ; fi;