You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@csidyel I'm referring to this documentation page. One customer reported he found it a little bit confusing since not all the env variables in the examples are standard. He's proposing a bit cleaner version:
task:
prologue:
commands:
- checkout
- curl -L https://codeclimate.com/downloads/test-reporter/test-reporter-latest-linux-amd64 > ./cc-test-reporter
- chmod +x ./cc-test-reporter
- ./cc-test-reporter before-build
epilogue:
commands:
# format and upload each job's coverage data to S3
- ./cc-test-reporter format-coverage --output "coverage/codeclimate.$SEMAPHORE_JOB_ID.json"
- aws s3 cp ./coverage/codeclimate.$SEMAPHORE_JOB_ID.json "s3://my_coverage_bucket/$SEMAPHORE_PROJECT_NAME/$SEMAPHORE_GIT_BRANCH/coverage/$SEMAPHORE_WORKFLOW_ID/"
jobs:
- name: Rspec-Rails
parallelism: 12
commands:
- rspec_booster --job $SEMAPHORE_JOB_INDEX/$SEMAPHORE_JOB_COUNT
- name: CodeClimate Upload All
dependencies: ["Tests"]
task:
jobs:
- name: Sync to CC
commands:
- curl -L https://codeclimate.com/downloads/test-reporter/test-reporter-latest-linux-amd64 > ./cc-test-reporter
- chmod +x ./cc-test-reporter
# Download the individual segments from S3 and dump them in ./coverage
- aws s3 sync "s3://my_coverage_bucket/$SEMAPHORE_PROJECT_NAME/$SEMAPHORE_GIT_BRANCH/coverage/$SEMAPHORE_WORKFLOW_ID/" coverage/
- echo $(ls -1 coverage/ | wc -l) Coverage Files Found
# concat the files together and upload to Code Climate
- ./cc-test-reporter sum-coverage --output coverage/codeclimate.json --parts $(ls -1 coverage/ | wc -l) coverage/codeclimate.*.json
- ./cc-test-reporter upload-coverage
Can you please review the proposal and make necessary changes?
The text was updated successfully, but these errors were encountered:
I updated the docs based on the customer's feedback. However, I haven't included the whole example he provided because it seems very molded to his use-case.
@csidyel I'm referring to this documentation page. One customer reported he found it a little bit confusing since not all the env variables in the examples are standard. He's proposing a bit cleaner version:
Can you please review the proposal and make necessary changes?
The text was updated successfully, but these errors were encountered: