Semaphore CI Test Coverage



For more example scripts, head to the test reporter repo on GitHub.

  1. Add CC_TEST_REPORTER_ID to the Environment Variables (Project Settings -> Environment Variables)


Note: It’s not necessary to check Encrypt content

  1. Update Build Settings
    see text to copy below screenshots
  1. Update After job Settings

Commands from this comment and this comment

# setup 1
curl -L > ./cc-test-reporter

# setup 2 
chmod +x ./cc-test-reporter

# setup 4
./cc-test-reporter before-build

# After job
exitcode=$(if [ "$SEMAPHORE_THREAD_RESULT" == "passed" ]; then echo 0; else echo 1; fi)
./cc-test-reporter after-build --exit-code $exitcode



Updated about a year ago

Semaphore CI Test Coverage

Suggested Edits are limited on API Reference Pages

You can only suggest edits to Markdown body content, but not to the API spec.