DOCS / GUIDES

Cluck in CI

Run builds and tests for Cluck projects on any CI system.

Intermediate8 min read
Before you beginYou need the cluck CLI, a Pollosoft account, and a coop to work in. No prior experience required. Curiosity and a mild fondness for chickens are helpful.

Overview

Run builds and tests for Cluck projects on any CI system. The whole thing takes about 8 minutes, and the commands below are the ones you will use along the way.

$ cluck ci setup
$ cluck test --parallel
$ cluck egg publish --tag latest

Steps

  1. Add the CLI. Use the official cluck-action or install the binary in your pipeline's first step.
  2. Cache dependencies. Cache the ~/.cluck/feed directory. Cold caches make hens grumpy.
  3. Test in parallel. cluck test --parallel splits your suite across a clutch of runners and reassembles the results.
  4. Publish. Publish artifacts with cluck egg publish only from the main branch, and tag them carefully.

Commands used

Keep going

Stuck? Check the error codes, the FAQ, or the glossary.