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

Do not build grow tests for production #2263

Merged
merged 3 commits into from
Jun 12, 2019

Conversation

tharders
Copy link
Collaborator

@tharders tharders commented Jun 5, 2019

The grow test contents should not be deployed on prod.
We simply exclude the path /tests/ in the grow build.

On staging the files will still be available:
https://amp-dev-staging.appspot.com/tests/examples/import

Copy link
Collaborator

@sebastianbenz sebastianbenz left a comment

Choose a reason for hiding this comment

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

Hm. I'm not sure about this approach. I'd like to avoid spreading logic across multiple places. I'd prefer to keep logic out of the package.json instead and move it into the respective gulp tasks. For example, buildForGrowTests should definitely implement source filtering itself.

@tharders tharders force-pushed the fix/dont-deploy-test-content-on-prod branch from e70acca to ba6f702 Compare June 11, 2019 08:07
configureGrow(settings) {
const options = {};
if (settings) {
Object.assign(options, settings);
Copy link
Collaborator

Choose a reason for hiding this comment

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

I find options vs. settings a little confusing 😁

Copy link
Collaborator

@matthiasrohmer matthiasrohmer left a comment

Choose a reason for hiding this comment

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

One comment, otherwise looks good.

@tharders tharders merged commit 60d2229 into future Jun 12, 2019
@matthiasrohmer matthiasrohmer deleted the fix/dont-deploy-test-content-on-prod branch June 23, 2019 19:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants