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

Skip unit tests for PRs containing only integration test changes #9771

Merged
merged 1 commit into from Jun 7, 2017
Merged

Skip unit tests for PRs containing only integration test changes #9771

merged 1 commit into from Jun 7, 2017

Conversation

rsimha
Copy link
Contributor

@rsimha rsimha commented Jun 7, 2017

Since we run integration tests only on master, this PR will speed up Travis PR builds if all you are doing is changing / disabling / enabling an integration test.

Fixes #9772

@rsimha
Copy link
Contributor Author

rsimha commented Jun 7, 2017

/to @choumx, @erwinmombay

* @return {boolean}
*/
function isIntegrationTest(filePath) {
if (filePath.startsWith('test/integration/')) return true;
Copy link
Member

Choose a reason for hiding this comment

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

no need for if statement just do:

return filePath.startsWith('test/integration/');

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Coming up in a different PR.

@rsimha rsimha merged commit fd10890 into ampproject:master Jun 7, 2017
@rsimha rsimha deleted the 2017-06-07-IntegrationTests branch June 7, 2017 18:03
@rsimha
Copy link
Contributor Author

rsimha commented Jun 7, 2017

This was a success. See https://travis-ci.org/ampproject/amphtml/jobs/240510675. Travis runs for PRs containing just integration test changes reduced by half, to about 9 mins.

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.

None yet

4 participants