Skip to content
CCPEDIAby Unity Nodes
Discussions/App Development/How to test Canton bootstrap script non-interactively in a ci job?Forum ↗

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

App Development2 posts619 views4 likesLast activity Jun 2020
RI
Richard_KapolnaiOP
Jun 2020 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).

SO
soren
Jun 2020 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.

← Back to Discussions