evaluate(1) General Commands Manual evaluate(1)

evaluate - Evaluate a local build script

evaluate [-f|--forward] [-d|--debug] [-a|--anonymous] [-h|--help] [SOURCE]

Evaluate a build configuration from the given source. This will evaluate each step in the build process until a non-continuable error is reached or all steps complete successfully. You can use the quipu(1) command to inspect build artifacts, logs, and other properties.

Sometimes you want to make a quick modification to your build configuration and test it against the source repository without having to commit the change into your VCS only to revert or squash it later. In this scenario you can specify the SOURCE to be the modified manifest in your project directory, e.g. ayllu-build evaluate .ayllu-build.json.

When the --debug flag is enabled anytime a step fails the user will be prompted to attach to the failed build in an external terminal and investigate the error. Once the user is finished they can press enter and the build will be cancelled.

Users have many different desires in terms of configuration file format. Natively Ayllu will only accept a JSON configuration file for it's build input but supports the use of pre-processors to allow users to specify their build in the configuration language of their choosing. Jsonnet is the recommend configuration system supported by Ayllu.

You can configure it in your Ayllu config file as such:

[build.pre_processor] source = ".ayllu-build.jsonnet" program = "jsonnet" args = ["-"] "

Each time ayllu-build evaluates a repository it will look for an .ayllu-build.jsonnet file, pipe into the jsonnet program, and then return the json output it produces.

Usage Examples:

Build the local repository at HEAD

ayllu-build evaluate ayllu-build evaluate .

Build the local repository at HEAD with an uncommitted manifest file

ayllu-build evaluate .ayllu-build.jsonnet

Build the local repository at HEAD with a manifest piped in via STDIN

ayllu-build evaluate - < $MANIFEST_CONTENT

Perform an anonymous build in a managed source repository

ayllu-build evaluate --anonymous path/to/your/manifest

Or if you're outside of a managed repository

ayllu-build evaluate path/to/your/manifest ayllu-build evaluate - < $MANIFEST_CONTENT

If the standard streams should be forwarded to the terminal
Pause on step failures so you can attach to the environment
Ignore any repository in the current directory
Print help (see a summary with '-h')
[SOURCE]
Build Source can be - for STDIN, PATH, or collection/name
evaluate