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 testing for PR builds and non-lockfile push builds on greenkeeper branches #13025
Skip testing for PR builds and non-lockfile push builds on greenkeeper branches #13025
Conversation
Shouldn't this be possible to configure in .travis.yml / Travis settings? I thought the |
@cramforce We'd like to run push builds on The Travis docs do not mention a way to specify that push builds be run for a particular branch, but not PR builds for PRs from that branch to |
says in https://docs.travis-ci.com/user/conditional-builds-stages-jobs/ that you can do |
That's promising, @erwinmombay :) |
@erwinmombay @cramforce PTAL. |
Bumping this. |
@cramforce @erwinmombay From testing, it turns out that if a build is conditionally skipped, |
Tested this on an actual Non-lockfile commits: Lockfile commits: |
greenkeeper
branches are currently tested on Travis four times.package.json
updatepackage.json
updateyarn.lock
updateyarn.lock
updateThe only case in which we need to run all the AMP tests is case 4.
This PR skips testing in cases 1, 2, and 3. The pre and post script steps that actually update the lockfile will be run normally.
This will reduce test time from ~20 min to ~1 min in cases 1, 2, and 3, , thereby reducing the overall Travis CPU usage.