test-reporter icon indicating copy to clipboard operation
test-reporter copied to clipboard

Documentation for --exit-code wrong

Open mstahl opened this issue 5 years ago • 0 comments

The documentation here is incorrect, says to use this command in a codeship-steps file:

- name: codeclimate_post service: YOURSERVICE command: cc-test-reporter after-build --exit-code $?

This doesn't work, as the $? variable isn't found (I suspect but I'm not sure this is because each command in the file gets run in its very own bash session). Outputs Error: invalid argument "$?" for --exit-code: strconv.ParseInt: parsing "$?": invalid syntax with a usage message.

As far as I can tell this works without the --exit-code argument anyway, though admittedly I haven't gotten code coverage reporting working yet.

mstahl avatar Jan 21 '20 21:01 mstahl