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

Fix the CI setup by using simple-phpunit #22

Merged
merged 5 commits into from
Apr 30, 2017
Merged

Conversation

stof
Copy link
Contributor

@stof stof commented Apr 30, 2017

No description provided.

This prepares the compatibility with PHPUnit 6, but the dependency for
container tests is not yet compatible.
This avoids installing it when running it, which displays the installation
logs non-collapsed on Travis
@stof
Copy link
Contributor Author

stof commented Apr 30, 2017

As I added a job running on PHP 7.1, it requires merging xabbuh/panda-client#15 too

@@ -35,9 +36,10 @@ before_install:

install:
- composer update $COMPOSER_OPTIONS
- vendor/bin/simple-phpunit install
Copy link
Owner

Choose a reason for hiding this comment

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

We don't need this step, do we?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

See the last commit. This is just to make the Travis output cleaner (having the install steps done in a collapsed section rather than being displayed in the test command itself)

Copy link
Owner

Choose a reason for hiding this comment

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

makes sense

.gitignore Outdated
@@ -2,4 +2,4 @@ composer.lock
Tests/App/log
Tests/App/cache
vendor

/.phpunit
Copy link
Owner

Choose a reason for hiding this comment

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

This must actually be vendor/symfony/phpunit-bridge/bin/.phpunit, right?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

yeah, too used to the Symfony repo which has a script at the root and so .phpunit ends up at the root (which is far easier to cache on Travis btw).

Copy link
Contributor Author

Choose a reason for hiding this comment

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

fixed. And I kept some caching on Travis.

By default, the phpunit-bridge stores these files inside itself, which
is hard to cache on Travis (at least without side-effects on composer
itself).
@stof
Copy link
Contributor Author

stof commented Apr 30, 2017

OK, ready except for the failure on Symfony 3.3 (the dev build), which I will investigate

@stof
Copy link
Contributor Author

stof commented Apr 30, 2017

The deprecation-related failure on 3.3 is because the ControllerTest is instantiating the kernel and the container like for functional tests, and then tries to inject mocks in it for all the panda-client layer. This is really weird, and requires rewriting the test entirely. So I suggest doing it in a separate PR.

@xabbuh
Copy link
Owner

xabbuh commented Apr 30, 2017

Thank you @stof.

@xabbuh xabbuh merged commit 055c0db into xabbuh:master Apr 30, 2017
xabbuh added a commit that referenced this pull request Apr 30, 2017
This PR was squashed before being merged into the 1.2.x-dev branch (closes #22).

Discussion
----------

Fix the CI setup by using simple-phpunit

Commits
-------

055c0db Force installing the PHPUnit files in a cacheable location
d3e6a7d Install PHPUnit during the install step
ac33930 Remove the dependency on Yaml in the testsuite
f2235d3 Use the namespaced test case from PHPUnit
c42ba98 Use simple-phpunit from the bridge rather than the Travis PHPUnit
@stof stof deleted the phpunit_6 branch April 30, 2017 15:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants