Skip to content
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

[ci] Use current PHP_BINARY when running ./phpunit #16121

Merged
merged 1 commit into from
Oct 5, 2015

Conversation

nicolas-grekas
Copy link
Member

Q A
Bug fix? no
New feature? no
BC breaks? no
Deprecations? no
Tests pass? yes
Fixed tickets -
License MIT
Doc PR -

This allows to easilly test with several php versions.
I also added an auto-install of composer and the deps when they are not here.
Should ease on-boarding devs to running tests.

// PHPUnit 4.8 does not support PHP 7, while 5.0 requires PHP 5.6+
if (PHP_VERSION_ID >= 70000) {
$PHPUNIT_VERSION = '5.0';
$PHP = ProcessUtils::escapeArgument($PHP);
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

will this work properly on HHVM ? Or are they exposing it as hhvm --php ?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

PHP_BINARY will not contain --php so it's ok

@nicolas-grekas nicolas-grekas force-pushed the php-bin-unit branch 2 times, most recently from 7990613 to 765b41f Compare October 5, 2015 12:36
@fabpot
Copy link
Member

fabpot commented Oct 5, 2015

Thank you @nicolas-grekas.

@fabpot fabpot merged commit 41aecbe into symfony:2.3 Oct 5, 2015
fabpot added a commit that referenced this pull request Oct 5, 2015
…las-grekas)

This PR was merged into the 2.3 branch.

Discussion
----------

[ci] Use current PHP_BINARY when running ./phpunit

| Q             | A
| ------------- | ---
| Bug fix?      | no
| New feature?  | no
| BC breaks?    | no
| Deprecations? | no
| Tests pass?   | yes
| Fixed tickets | -
| License       | MIT
| Doc PR        | -

This allows to easilly test with several php versions.
I also added an auto-install of composer and the deps when they are not here.
Should ease on-boarding devs to running tests.

Commits
-------

41aecbe [ci] Use current PHP_BINARY when running ./phpunit
@nicolas-grekas nicolas-grekas deleted the php-bin-unit branch October 5, 2015 15:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants