This repository has been archived by the owner on Nov 11, 2020. It is now read-only.
-
-
Notifications
You must be signed in to change notification settings - Fork 190
/
.travis.yml
73 lines (68 loc) · 2.61 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
dist: trusty
sudo: false
language: php
services:
- mongodb
env:
global:
- DRIVER_VERSION="stable"
- ADAPTER_VERSION="^1.0.0"
matrix:
fast_finish: true
include:
- php: 5.6
env: DRIVER_VERSION="1.6.7" COMPOSER_FLAGS="--prefer-lowest"
addons:
apt:
sources:
- sourceline: "deb [arch=amd64] https://repo.mongodb.org/apt/ubuntu trusty/mongodb-org/3.0 multiverse"
key_url: "https://www.mongodb.org/static/pgp/server-3.0.asc"
- "mongodb-upstart"
packages: ['mongodb-org-server']
- php: 5.6
addons:
apt:
sources:
- sourceline: "deb [arch=amd64] https://repo.mongodb.org/apt/ubuntu trusty/mongodb-org/3.4 multiverse"
key_url: "https://www.mongodb.org/static/pgp/server-3.4.asc"
- "mongodb-upstart"
packages: ['mongodb-org-server']
- php: 7.0
addons:
apt:
sources:
- sourceline: "deb [arch=amd64] https://repo.mongodb.org/apt/ubuntu trusty/mongodb-org/3.4 multiverse"
key_url: "https://www.mongodb.org/static/pgp/server-3.4.asc"
- "mongodb-upstart"
packages: ['mongodb-org-server']
- php: 7.1
addons:
apt:
sources:
- sourceline: "deb [arch=amd64] https://repo.mongodb.org/apt/ubuntu trusty/mongodb-org/3.4 multiverse"
key_url: "https://www.mongodb.org/static/pgp/server-3.4.asc"
- "mongodb-upstart"
packages: ['mongodb-org-server']
- php: 7.2
addons:
apt:
sources:
- sourceline: "deb [arch=amd64] https://repo.mongodb.org/apt/ubuntu trusty/mongodb-org/3.4 multiverse"
key_url: "https://www.mongodb.org/static/pgp/server-3.4.asc"
- "mongodb-upstart"
packages: ['mongodb-org-server']
- php: 7.3
addons:
apt:
sources:
- sourceline: "deb [arch=amd64] https://repo.mongodb.org/apt/ubuntu trusty/mongodb-org/3.4 multiverse"
key_url: "https://www.mongodb.org/static/pgp/server-3.4.asc"
- "mongodb-upstart"
packages: ['mongodb-org-server']
before_script:
- if [[ ${TRAVIS_PHP_VERSION:0:2} == "5." ]]; then yes '' | pecl -q install -f mongo-${DRIVER_VERSION}; fi
- if [[ ${TRAVIS_PHP_VERSION:0:2} == "7." ]]; then pecl install -f mongodb-${DRIVER_VERSION}; fi
- if [[ ${TRAVIS_PHP_VERSION:0:2} == "7." ]]; then composer config "platform.ext-mongo" "1.6.16" && composer require "alcaeus/mongo-php-adapter=${ADAPTER_VERSION}"; fi
- composer update ${COMPOSER_FLAGS}
script:
- ./vendor/bin/phpunit