-
Notifications
You must be signed in to change notification settings - Fork 20
Fixed #138 Added PHP-Scoper to build to prevent dependency conflicts. #141
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
base: master
Are you sure you want to change the base?
Fixed #138 Added PHP-Scoper to build to prevent dependency conflicts. #141
Conversation
|
This moves us a little closer to resolving #79. However, there are still a few more steps that can be automated. |
| 5. `svn commit -m "Sync with GitHub repo"` | ||
| 4. Create the Subversion tag: | ||
| `svn copy https://plugins.svn.wordpress.org/rollbar/trunk https://plugins.svn.wordpress.org/rollbar/tags/[version number] -m"Tag [version number]"`. | ||
| `svn copy https://plugins.svn.wordpress.org/rollbar/trunk https://plugins.svn.wordpress.org/rollbar/tags/[version number] -m" Tag [version number]"`. |
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.
Nit - intentional to add the space?
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.
Hmm... that was supposed to be on the other side of the quote. Thanks!
| @@ -0,0 +1,36 @@ | |||
| #! /bin/sh | |||
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.
I'm wondering about testing. Do we, or could we, have tests that ensure that the package as built by this script functions correctly? (For example, could we have the existing test suite test what's built by this script.)
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.
I had to think about this one for a while. We probably could add tests.
We would need to install the test dependencies in seperate vendor directory e.g. vendor_test in the dist directory. From there we should be able to copy the files from the root of the repo needed to run tests: tests, .wp.env.json, package.json, package-lock.json, phpcs.xml, and phpunit.xml.
I believe at that point the dist directory could run the test suite the same as the we do with the repo normally.
Description of the change
This PR fixes #136. It adds a build script to build the plugin distribution files. As part of the build process it now scopes all dependencies into a new
RollbarWPnamespace.Type of change
Related issues
Checklists
Development
Code review