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

Add a wrapper 'gulp pr-check' task for pr-check.js #12715

Merged
merged 10 commits into from Jan 9, 2018
Merged

Add a wrapper 'gulp pr-check' task for pr-check.js #12715

merged 10 commits into from Jan 9, 2018

Conversation

rsimha
Copy link
Contributor

@rsimha rsimha commented Jan 8, 2018

This PR does the following:

  • Adds gulp pr-check, which will run all PR checks locally.
  • Adds support for optionally running the visual tests and sauce labs tests.
  • Adds support for running selected tests via --files
  • Adds support for skipping the gulp build step via --nobuild
  • Updates the AMP development docs.

With this, a developer can use the following command to quickly run all Travis CI checks, and just the tests in <test-file> on their local machine. This is more reliable than running all the unit and integration tests locally.

gulp pr-check --nobuild --files <test-file>

Follow up to #12711
Fixes #5352

@rsimha
Copy link
Contributor Author

rsimha commented Jan 9, 2018

/to @cramforce @choumx @erwinmombay
/cc @jpettitt

@rsimha rsimha merged commit 6eb62d4 into ampproject:master Jan 9, 2018
@rsimha rsimha deleted the 2018-01-08-PRCheck branch January 9, 2018 19:14
@rsimha
Copy link
Contributor Author

rsimha commented Jan 9, 2018

Sample output from running gulp pr-check --nobuild --files=<file>: https://gist.github.com/rsimha-amp/bd39fc5fe720632a1057075516abf5a1

Total time taken was less than 6 minutes.

gzgogo pushed a commit to gzgogo/amphtml that referenced this pull request Jan 26, 2018
RanAbram pushed a commit to RanAbram/amphtml that referenced this pull request Mar 12, 2018
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

3 participants