WeareJH / ci-tool

CI workflows optimisation tool

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

CI Tool

CircleCI

Overview

This tool provides an abstraction that can be used for optimising CI pipelines.

API

ci-tool is-tested

Determines whether the currently checked out git tree has already been tested before.

It is intended to be used in bash conditional statements

if [[ ! php ci-tool is-tested ]] then ;
  # Test commands go here"
  ci-tool register-tested
fi

ci-tool register-tested

Marks the currently checked out git tree as tested for future reference.

ci-tool register-built

Marks the currently checked out git tree as built for future reference.

ci-tool download-artifact

Downloads a built artifact compatible with the current git tree, or else it fails.

It is intended to be used in a bash if statement in the build step.

The downloaded artifact will be automatically picked up by the deploy step of the M2 recipe.

if [[ ! php ci-tool download-artifact ]] then ;
  # Build project commands go here 
  ci-tool register-built
fi

ci-tool print-registry

Prints the registry to stdout. It highlights the current hash

Build

Build a phar file from this project using https://github.com/clue/phar-composer

About

CI workflows optimisation tool


Languages

Language:PHP 100.0%