This tool provides an abstraction that can be used for optimising CI pipelines.
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
Marks the currently checked out git tree as tested for future reference.
Marks the currently checked out git tree as built for future reference.
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
Prints the registry to stdout. It highlights the current hash
Build a phar file from this project using https://github.com/clue/phar-composer