Hello everyone.
Is there a way to write a multiline command in the yaml configuration file?
Something like
test:
override:
if something
then
echo 'something'
else
echo 'something else'
fi
Thanks and have a nice day
You could put it into a bash script and execute that script
Thanks for you reply.
Iād rather keeping everything in circle.yml.
I stumbled upon the following:)
test:
post:
- >
if [ -n "${RUN_NIGHTLY_BUILD}" ]; then
./bin/run-functional-tests.sh ${FUNCTIONAL_TEST_TARGET};
fi
See: https://circleci.com/docs/nightly-builds
6 Likes