/circleci-orb

Developing a CircleCI orb for usage in all the replikativ repositories

MIT LicenseMIT

replikativ Orb

CircleCI Build Status CircleCI Orb Version GitHub License Clojurians Slack

This CircleCI Orb helps continuously integrating replikativ projects

Test

  • Install CircleCI CLI tool
  • Pack the Orb in one big YAML with circleci orb pack src > orb.yml
  • Validate the Orb with circleci orb validate orb.yml

Usage

Example use-cases are provided on the orb registry page. Source for these examples can be found within the src/examples directory. Unittests are run via ./bin/run-unittests and integration tests are run via ./bin/run-integrationtests. Formatting is checked with cljfmt, a build is executed with seancorfield/depstar and deployments to Clojars are done deps-deploy/deps-deploy.

For using the default replikativ workflow it is only necessary to basically copy one of the examples into the .circleci/config.yml file, commit and push it. The default steps are setup, format, build, unittest, deploy-snapshot (for commits to development branch) and deploy-release (for commit to master branch). If you want to run integration tests there is one already there for integrationtesting with a PostgreSQL database that listens on port 5432 with a database 'config-test', user 'alice' and password 'foo'. One for PostgreSQL and MariaDB exists as well, connection to MariaDB works quite the same.

Release

Commit the new Orb to the git repository and set the release type in the commit message. [semver:patch] as part of the message in case you want to release a patch version or your Orb.