Skip to content

Commit

Permalink
Merge pull request #24 from wptide/feature/message-providers
Browse files Browse the repository at this point in the history
Message Providers for MongoDB and Firestore
  • Loading branch information
valendesigns authored Jun 9, 2018
2 parents 579128e + a7d3f01 commit 931665b
Show file tree
Hide file tree
Showing 18 changed files with 1,399 additions and 86 deletions.
1 change: 1 addition & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ env:
- PHPUNIT_VERSION=6

install:
- source bin/travis.install.sh
- sudo apt-get install -y libxml2-utils
- nvm install 6 && nvm use 6
- npm install && composer install --no-interaction
Expand Down
18 changes: 18 additions & 0 deletions bin/travis.install.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
#!/bin/bash

// Install gRPC
sudo apt-get install php-pear \
&& sudo pecl install grpc \
&& echo "extension=grpc.so" >> `php --ini | grep "Loaded Configuration" | sed -e "s|.*:\s*||"`

# Get and make mongodb PHP driver
sudo apt-get install libssl-dev \
&& git clone https://github.com/mongodb/mongo-php-driver.git --recursive \
&& cd mongo-php-driver \
&& phpize \
&& ./configure --with-mongodb-ssl=openssl \
&& make all \
&& make install \
&& echo "extension=mongodb.so" >> `php --ini | grep "Loaded Configuration" | sed -e "s|.*:\s*||"` \
&& cd .. \
&& rm -rf mongo-php-driver
10 changes: 9 additions & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,12 +20,20 @@
"require": {
"firebase/php-jwt": "^4.0",
"aws/aws-sdk-php": "^3.22",
"google/cloud-storage": "^1.4"
"google/cloud-storage": "^1.4",
"mongodb/mongodb": "^1.3",
"google/cloud-firestore": "^0.10.1"
},
"require-dev": {
"wp-coding-standards/wpcs": "*",
"wimg/php-compatibility": "*",
"dealerdirect/phpcodesniffer-composer-installer": "^0.4.4",
"php-coveralls/php-coveralls": "~2.1"
},
"config": {
"platform": {
"ext-mongodb": "1.4.3",
"ext-grpc": "1.12.0"
}
}
}
Loading

0 comments on commit 931665b

Please sign in to comment.