Skip to content
CCPEDIAby Unity Nodes
App Development

How to test Canton bootstrap script non-interactively in a ci job?

2 posts636 views4 likesLast activity Jun 2020

  1. Richard_KapolnaiOP 1

    I’d like to test if a Canton script works in a CI job, so I need something which returns a nonzero error code on failure (e.g. if the script has invalid syntax, or causes runtime exception).

  2. soren 3

    Hi Richard, you can use the headless script mode to run Canton, which exits with a non-zero exit code if the bootstrap script fails. This is the best way to run Canton as part of testing in CI.