Skip to content

Run production tests on npm package - #3730

Merged
azz merged 2 commits into
prettier:masterfrom
azz:dist-test
Jan 12, 2018
Merged

azz merged 2 commits into
prettier:masterfrom
azz:dist-test

Conversation

@azz

@azz azz commented Jan 12, 2018

Copy link
Copy Markdown
Member

Runs the production tests agains the result of actually installing the package, rather than from the dist directory.

Extracted from #3712
Fixes #3698

Comment thread .travis.yml
yarn: true
directories:
- node_modules
- node_modules

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

😉

Comment thread .travis.yml
- NODE_ENV=development
- NODE_ENV=production
matrix:
fast_finish: true

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

❓

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Yeah, shouldn't we leave this, in order to learn about build failures faster? From https://blog.travis-ci.com/2013-11-27-fast-finishing-builds:

With fast finishing enabled, Travis CI will mark your build as finished as soon as one of two conditions are met: The only remaining jobs are allowed to fail, or a job has already failed.

We don't have any jobs allowed to fail, so it should be safe to leave fast_finish enabled.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

Ah, I was under the impression it only applied when jobs were allowed to fail. Reverted.

@duailibe

Copy link
Copy Markdown
Collaborator

How likely it is that a build will pass in production but fail in development?

@azz

azz commented Jan 12, 2018

Copy link
Copy Markdown
Member Author

Shouldn't be possible, but I don't know for sure.

@azz
azz merged commit dd78f31 into prettier:master Jan 12, 2018
@azz
azz deleted the dist-test branch January 12, 2018 16:19
@lock lock Bot added the locked-due-to-inactivity Please open a new issue and fill out the template instead of commenting. label Jan 18, 2019
@lock lock Bot locked as resolved and limited conversation to collaborators Jan 18, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

locked-due-to-inactivity Please open a new issue and fill out the template instead of commenting.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants