Skip to content

Commit

Permalink
Merge pull request #47 from ezzy1337/dev/php7
Browse files Browse the repository at this point in the history
Dev/php7
  • Loading branch information
chadicus authored Aug 8, 2016
2 parents c7bfd84 + d0cc1c6 commit 1e97d73
Show file tree
Hide file tree
Showing 7 changed files with 397 additions and 248 deletions.
4 changes: 4 additions & 0 deletions .scrutinizer.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
build:
environment:
php: 7.0.6
mongodb: true
filter:
excluded_paths:
- 'vendor/*'
Expand Down
11 changes: 4 additions & 7 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,21 +1,18 @@
language: php
php:
- 7.0
- 5.6
- 5.5
- 5.4
env:
- EXT_VERSION=1.3.7 DB_PACKAGE=mongodb-10gen
- EXT_VERSION=1.3.7 DB_PACKAGE=mongodb-org
- EXT_VERSION=1.5.4 DB_PACKAGE=mongodb-10gen
- EXT_VERSION=1.5.4 DB_PACKAGE=mongodb-org
- EXT_VERSION=1.1 DB_PACKAGE=mongodb-10gen
- EXT_VERSION=1.1 DB_PACKAGE=mongodb-org
before_install:
- "sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv 7F0CEB10"
- "echo 'deb http://downloads-distro.mongodb.org/repo/ubuntu-upstart dist 10gen' | sudo tee /etc/apt/sources.list.d/mongodb.list"
- "sudo apt-get update"
- "sudo apt-get install ${DB_PACKAGE}"
before_script:
- composer self-update
- yes '' | pecl install -f mongo-${EXT_VERSION}
- yes '' | pecl install -f mongodb-${EXT_VERSION}
# 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.
- 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'
script: ./build.php
Expand Down
4 changes: 2 additions & 2 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,8 @@
],
"license": "MIT",
"require": {
"php": "~5.4",
"ext-mongo": "~1.3"
"php": "^7.0",
"mongodb/mongodb": "^1.0.0"
},
"require-dev": {
"squizlabs/php_codesniffer": "~2.0",
Expand Down
Loading

0 comments on commit 1e97d73

Please sign in to comment.