Documentation is currently for moon v2 and latest proto. Documentation for moon v1 has been frozen and can be found here.
ci
The moon ci command is a special command that should be ran in a continuous integration (CI)
environment, as it does all the heavy lifting necessary for effectively running tasks.
By default this will run all tasks that are affected by changed files and have the
runInCI task option enabled.
$ moon ci
However, you can also provide a list of targets to explicitly run, which will still be filtered down
by runInCI.
$ moon ci :build :lint
View the official continuous integration guide for a more in-depth example of how to utilize this command.
Reports
After execution, moon writes the generated report to .moon/cache/ciReport.json. The non-CI task
execution commands write the same report format to .moon/cache/runReport.json.
These reports live in .moon/cache, so they may be overwritten or deleted between runs. Copy the
report elsewhere if you need to persist it, like uploading it as a CI artifact.
Arguments
...[target]- Task targets to run.
Options
Inherits most options from moon exec and pre-fills with: --affected, --ci,
--on-failure=continue, --summary=detailed, --upstream=deep, --downstream=direct.
Configuration
tasksin.moon/tasks/*tasksinmoon.*tasks.*.options.runInCIinmoon.*