Skip to content

Commit 1e97d73

Browse files
authored
Merge pull request #47 from ezzy1337/dev/php7
Dev/php7
2 parents c7bfd84 + d0cc1c6 commit 1e97d73

File tree

7 files changed

+397
-248
lines changed

7 files changed

+397
-248
lines changed

.scrutinizer.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
build:
2+
environment:
3+
php: 7.0.6
4+
mongodb: true
15
filter:
26
excluded_paths:
37
- 'vendor/*'

.travis.yml

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,18 @@
11
language: php
22
php:
3+
- 7.0
34
- 5.6
4-
- 5.5
5-
- 5.4
65
env:
7-
- EXT_VERSION=1.3.7 DB_PACKAGE=mongodb-10gen
8-
- EXT_VERSION=1.3.7 DB_PACKAGE=mongodb-org
9-
- EXT_VERSION=1.5.4 DB_PACKAGE=mongodb-10gen
10-
- EXT_VERSION=1.5.4 DB_PACKAGE=mongodb-org
6+
- EXT_VERSION=1.1 DB_PACKAGE=mongodb-10gen
7+
- EXT_VERSION=1.1 DB_PACKAGE=mongodb-org
118
before_install:
129
- "sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv 7F0CEB10"
1310
- "echo 'deb http://downloads-distro.mongodb.org/repo/ubuntu-upstart dist 10gen' | sudo tee /etc/apt/sources.list.d/mongodb.list"
1411
- "sudo apt-get update"
1512
- "sudo apt-get install ${DB_PACKAGE}"
1613
before_script:
1714
- composer self-update
18-
- yes '' | pecl install -f mongo-${EXT_VERSION}
15+
- yes '' | pecl install -f mongodb-${EXT_VERSION}
1916
# wait for mongo, start is only needed for 2.4 package, see http://tldp.org/LDP/abs/html/devref1.html for description of this syntax.
2017
- sudo service mongodb start; bash -c 'while ! exec 6<>/dev/tcp/localhost/27017; do echo "$(date) - still trying to connect to mongo"; sleep 1; done'
2118
script: ./build.php

composer.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,8 @@
2121
],
2222
"license": "MIT",
2323
"require": {
24-
"php": "~5.4",
25-
"ext-mongo": "~1.3"
24+
"php": "^7.0",
25+
"mongodb/mongodb": "^1.0.0"
2626
},
2727
"require-dev": {
2828
"squizlabs/php_codesniffer": "~2.0",

0 commit comments

Comments
 (0)