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:
- 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?