Skip to content

Commit 44e556f

Browse files
dnahrebeckidkarlovi
authored andcommitted
- test alcaeus adapter with new mongodb ext
1 parent 6c01979 commit 44e556f

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

.travis.yml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,8 +37,11 @@ cache:
3737
before_script:
3838
- if [ "$DEPENDENCIES" = "beta" ]; then composer config minimum-stability beta; fi;
3939
- if [[ $TRAVIS_PHP_VERSION != hhvm ]]; then phpenv config-rm xdebug.ini; echo "memory_limit=2G" >> ~/.phpenv/versions/$(phpenv version-name)/etc/conf.d/travis.ini; fi;
40-
- echo "extension = mongo.so" >> ~/.phpenv/versions/$(phpenv version-name)/etc/php.ini
41-
- echo "extension = mongodb.so" >> ~/.phpenv/versions/$(phpenv version-name)/etc/php.ini
40+
- if [[ ${TRAVIS_PHP_VERSION:0:2} == "5." ]]; then yes '' | pecl -q install -f mongo-stable; fi
41+
- if [[ ${TRAVIS_PHP_VERSION:0:2} == "7." ]]; then pecl install -f mongodb-stable; fi
42+
- if [[ ${TRAVIS_PHP_VERSION:0:2} == "7." ]]; then composer require "alcaeus/mongo-php-adapter=^1.0.0" --ignore-platform-reqs; fi
43+
# - echo "extension = mongo.so" >> ~/.phpenv/versions/$(phpenv version-name)/etc/php.ini
44+
# - echo "extension = mongodb.so" >> ~/.phpenv/versions/$(phpenv version-name)/etc/php.ini
4245
- composer self-update
4346
- if [ "$SYMFONY_VERSION" != "" ]; then composer require "symfony/symfony:${SYMFONY_VERSION}" --no-update; fi;
4447
- composer update --prefer-dist --no-interaction $COMPOSER_FLAGS

composer.json

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -44,9 +44,6 @@
4444
"symfony/form" : "Needed to be able to use the AuthorizeFormType",
4545
"symfony/console": "Needed to be able to use commands"
4646
},
47-
"provide": {
48-
"ext-mongo": "^1.6.14"
49-
},
5047
"autoload": {
5148
"psr-4": { "FOS\\OAuthServerBundle\\": "" },
5249
"exclude-from-classmap": ["/Tests/"]

0 commit comments

Comments
 (0)