-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
45 lines (37 loc) · 1.07 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
sudo: false
dist: trusty
language: php
php:
- nightly
- 7.2
- 7.1
- 7.0
- 5.6
- 5.5
- 5.4
matrix:
allow_failures:
- php: nightly
include:
- php: "5.3"
dist: precise
addons:
apt:
sources:
- mongodb-3.2-precise
packages:
- mongodb-org-server
services: mongodb
before_script:
- PHP_VERSION=$(php -r 'echo phpversion();')
- mongod --version
- echo $TRAVIS_PHP_VERSION
- echo $PHP_VERSION
- if [[ ${PHP_VERSION:0:2} == "5." ]]; then echo "extension = mongo.so" >> ~/.phpenv/versions/$(phpenv version-name)/etc/php.ini; fi
- if [[ ${PHP_VERSION:0:2} == "5." ]]; then php -r "echo \MongoClient::VERSION . PHP_EOL;"; fi
- if [[ ${PHP_VERSION:0:2} == "7." ]]; then echo "extension = mongodb.so" >> ~/.phpenv/versions/$(phpenv version-name)/etc/php.ini; fi
- if [[ ${PHP_VERSION:0:2} == "7." ]]; then php -r 'echo MONGODB_VERSION . PHP_EOL;'; fi
- composer update --no-interaction
- if [[ ${PHP_VERSION:0:2} == "7." ]]; then composer require "alcaeus/mongo-php-adapter"; fi
script:
- echo "Currently not implemented"