CI build yml with reporting and exit codes

Hi

Just trying to set up a simple(ish) CI build. I am trying to get the tests to be run and if any fail then exit the build and report the failing tests.

The project is a ember app and my yml has the following:

test:
override:
- mkdir CIRCLE_TEST_REPORTS/ember - ERRORS_FOUND=(ember test --reporter xunit --silent); echo $ERRORS_FOUND | > $CIRCLE_TEST_REPORTS/ember/report.xml; echo $ERRORS_FOUND | grep -qi ‘’ && echo ‘exit 1’

I’m sure there must be a way to do this and probably an easier one. Any suggestions?

Regards

Darren

FYI: this just exceeded the allowed memory too.