-
Notifications
You must be signed in to change notification settings - Fork 46
/
.travis.yml
57 lines (47 loc) · 1.28 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
sudo: false
dist: trusty
addons:
apt:
sources:
- mongodb-3.2-precise
packages:
- mongodb-org-server
language: php
php:
- nightly
- 8.2
- 8.1
- 8.0
- 7.4
- 7.3
matrix:
allow_failures:
- php: nightly
- php: 8.0
- php: 8.1
- php: 8.2
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
- mkdir -p ./share
script:
- composer cover
- composer check-style
after_script:
- composer coveralls
notifications:
webhooks:
urls:
- https://webhooks.gitter.im/e/c2a1663759bdb5ddf7a0
on_success: always
on_failure: newer
on_start: false