| evaluate(1) | General Commands Manual | evaluate(1) |
NAME
evaluate - Evaluate a local build script
SYNOPSIS
evaluate [-f|--forward] [-d|--debug] [-a|--anonymous] [-h|--help] [SOURCE]
DESCRIPTION
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
OPTIONS
- -f, --forward
- If the standard streams should be forwarded to the terminal
- -d, --debug
- Pause on step failures so you can attach to the environment
- -a, --anonymous
- Ignore any repository in the current directory
- -h, --help
- Print help (see a summary with '-h')
- [SOURCE]
- Build Source can be - for STDIN, PATH, or collection/name
| evaluate |
- ayllu-build-check.1
- ayllu-build-debug.1
- ayllu-build-evaluate.1
- ayllu-build-gc.1
- ayllu-build-listen.1
- ayllu-build-ps.1
- ayllu-build-shell.1
- ayllu-build.1
- ayllu-dispatch.1
- ayllu-keys.1
- ayllu-migrate.1
- ayllu-shell-git-post-commit.1
- ayllu-shell-git-post-receive.1
- ayllu-shell-git-receive-pack.1
- ayllu-shell-git-upload-pack.1
- ayllu-shell.1
- ayllu-tutorial.7
- ayllu-web-serve.1
- ayllu-web.1
- ayllu.5
- ayllu.7
- quipu-build.1
- quipu-collections.1
- quipu-events.1
- quipu-ping.1
- quipu-query.1
- quipu.1