RedMachine Buy

Can I use RedMachine in CI?

RedMachine can run in CI on a runner you keep. The CI guide has example jobs for GitHub Actions and GitLab CI, and a git pre-push hook for your own machine. The licence is activated once on the runner. A hosted runner that is a new machine for each job has not been tried.

The reason is the licence. It is a signed file bound to one machine, so a job can use it only on the machine where it was activated, and each key works on one machine at a time. A CI machine needs its own key: use the second key of your purchase for it, or buy another. A container needs a stable /etc/machine-id. In CI you should pass --base with the branch the change goes into and fetch the full git history. A FAIL exits with code 1. Exit 0 is a PASS, or a change with nothing to prove, so check the base: line in the log.

If your code deletes files or sends anything, run RedMachine in CI, a container or a spare account, because it runs your tests against code it has broken on purpose. The questions page has that warning.

Buy RedMachine

Related

More answers