-
Notifications
You must be signed in to change notification settings - Fork 266
PHPLIB-622 Versioned MongoDB API for Drivers #816
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
bbc13f2
to
d6d9c63
Compare
7532582
to
3d3233d
Compare
.evergreen/run-tests.sh
Outdated
@@ -12,6 +12,7 @@ AUTH=${AUTH:-noauth} | |||
SSL=${SSL:-nossl} | |||
MONGODB_URI=${MONGODB_URI:-} | |||
TESTS=${TESTS:-} | |||
export API_VERSION=${API_VERSION:-} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should the list in "Supported/used environment variables" above be updated? It looks like it's out of sync with what's happening here.
Also, is there a reason we use export
here but not in other lines? I do see it's used for EXTENSION_VERSION
below, but nothing else.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
API_VERSION
is used in the tests, while the others are used in this script, hence the export
to avoid having to modify the call to phpunit
below.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
MONGODB_URI
is also used by PHPUnit and it doesn't have an export
line.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hm, no idea why I added it since it also works without.
.evergreen/run-tests.sh
Outdated
@@ -12,6 +12,7 @@ AUTH=${AUTH:-noauth} | |||
SSL=${SSL:-nossl} | |||
MONGODB_URI=${MONGODB_URI:-} | |||
TESTS=${TESTS:-} | |||
export API_VERSION=${API_VERSION:-} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
MONGODB_URI
is also used by PHPUnit and it doesn't have an export
line.
One outstanding question about |
This syncs the versioned API spec tests to commit a49cbdf605176a7035c0343779170ce412cc3f0e
PHPLIB-622
Docs are part of #815. Currently tests against a WIP version of ext-mongodb, which I'll remove once mongodb/mongo-php-driver#1204 is merged.