-
Notifications
You must be signed in to change notification settings - Fork 21
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
Run Travis-CI on all branches, #922
Conversation
Remove safelist, to go with the default allow all, except gh-pages.
To avoid "double builds" we should control build triggers, and builds being run, not the branches being used. https://docs.travis-ci.com/user/pull-requests/#double-builds-on-pull-requests
So, if we are not extremely under the pressure of too many Travis builds, I'd still build it for all branches. Simply disable PR builds, or skip it for other jobs than bundlewatch (which may need PR build to have the target to compere) Because with As all our branches have the code that we would rather test. I think the Travis-overload strategy should go in levels like:
Currently, we are
In this PR I suggest starting with 1. as we are YOLO already 😎 |
After giving it a second thought, I realized, we'd rather need more detailed checks for PRs, especially from forks. So I updated level 2 in my strategies list. |
I don't think we're YOLO yet - only this PR has branch+PR checks because of the That said, I don't really have a horse in this race but I would probably lean towards option 4. It can be frustrating to have duplicate checks if you just want to make a small change before merging a PR (PHPCS fix, for example), and you have to wait for all the checks to pass twice. And, I think we're on a shared Travis account, so running double tests this repo means taking processing time away from other teams/repos, right? |
Thanks, you're right. I didn't notice that we have to skip outdated disabled, and that's true that with
If we do the 3, so it contains 2 the nice way, we would not run all check twice, only a few we would run for branches.
I'm not sure. It's strange, but Travis plan usage shows 0 credits used over the last 2 months:confused: So I'm now voting for 3 or 4.
|
FWIW, 4. requires pushing this branch as is, and changing one switch in Travis settings. |
Just bombing in 💣 to point out that we can actually use github actions now the repo is public - nice list of some possibilities here: https://github.com/woocommerce/woocommerce-gutenberg-products-block/actions |
I tried it last time when I was adding bundlewatch, and it turned out that it's hard to get just a base branch name in case of a PR to send for comparison. But for the other jobs, I guess we can try moving them to github actions. |
Changes proposed in this Pull Request:
Run Travis-CI on all branches,
Remove safelist, to go with the default allow all, except
gh-pages
.I believe this or a similar change would be useful as we started working on a
feature/*
branch for contact info.With the current setup, none of our Travis & bundlewatch checks are being run there.
I would say we run quite a limited number of branches and we are now public repo, so hopefully hitting Travis minutes won't be an issue. The benefit we will gain:
trunk
)Screenshots:
PRs to
feature/contact-info
branchlike #914
PRs to PRs
like #918
Detailed test instructions:
Changelog entry
Additional notes:
feature/contact-info
or/^feature/.*$/
trunk
anddevelop
initially?