Skip to content
This repository has been archived by the owner on Nov 28, 2023. It is now read-only.

Commit

Permalink
Use --ignore-platform-reqs for the PHP 7 tests
Browse files Browse the repository at this point in the history
The code works, but the Mongo extension is not supported in PHP 7 yet,
which prevents the doctrine/mongo* packages from being installed.

This is all being done to support installation in PHP 7 for folks using
this library for the ORM query builder mock, which doesn't have this
issue.
  • Loading branch information
michaelmoussa committed Dec 9, 2015
1 parent 4eff1ba commit ca8e5ce
Showing 1 changed file with 15 additions and 7 deletions.
22 changes: 15 additions & 7 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,15 +1,23 @@
language: php

php:
- 5.5
- 5.6
- 7.0
matrix:
fast_finish: true
include:
- php: 5.5
env:
- MONGO_EXTENSION_SUPPORTED=true
- php: 5.6
env:
- MONGO_EXTENSION_SUPPORTED=true
- php: 7.0
env:
- MONGO_EXTENSION_SUPPORTED=false

before_script:
- echo "extension = mongo.so" >> ~/.phpenv/versions/$(phpenv version-name)/etc/php.ini
- if [[ $MONGO_EXTENSION_SUPPORTED == 'true' ]]; then echo "extension = mongo.so" >> ~/.phpenv/versions/$(phpenv version-name)/etc/php.ini ; fi
- composer self-update
- composer install
- composer require "doctrine/mongodb-odm"
- if [[ $MONGO_EXTENSION_SUPPORTED == true ]]; then composer install ; fi
- if [[ $MONGO_EXTENSION_SUPPORTED == false ]]; then composer install --ignore-platform-reqs ; fi

script:
- cd $TRAVIS_BUILD_DIR/test
Expand Down

0 comments on commit ca8e5ce

Please sign in to comment.