Skip to content

Commit

Permalink
chore(ci): reduce DockerHub load and enhance code climate upload
Browse files Browse the repository at this point in the history
We reduce DockerHub load by avoid double triggering of PR jobs. We wait for docker image build to end before triggering tests.

We also add retry on code climate test results upload, to avoid unnecessary test suite re-triggering.
  • Loading branch information
o-orand committed Aug 12, 2021
1 parent 1df0208 commit fb1f1f0
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion ci/pipeline.yml
Original file line number Diff line number Diff line change
Expand Up @@ -243,7 +243,11 @@ jobs:
cc-test-reporter before-build
bundle exec rspec --format documentation --format html --out ../test-reports/rspec-results.html
echo "Sending coverage to Code Climate"
cc-test-reporter after-build -d
if [[ $(cc-test-reporter after-build) -eq 0 ]]; then
echo "Failed to run cc-test-reporter. Re-launch in debug mode";
echo "---------------------------"
cc-test-reporter after-build -d;
fi
params:
CC_TEST_REPORTER_ID: ((code-climate-test-reporter-id))
COVERAGE: true
Expand Down Expand Up @@ -677,6 +681,7 @@ jobs:
passed: [pull-requests-build-cached-image]
trigger: true
- get: cf-ops-automation
passed: [pull-requests-build-cached-image]
resource: pr-develop
trigger: true
version: every
Expand Down Expand Up @@ -711,6 +716,7 @@ jobs:
passed: [pull-requests-build-cached-image]
trigger: true
- get: cf-ops-automation
passed: [pull-requests-build-cached-image]
resource: pr-develop
trigger: true
version: every
Expand Down Expand Up @@ -747,6 +753,7 @@ jobs:
passed: [pull-requests-build-cached-image]
trigger: true
- get: cf-ops-automation
passed: [pull-requests-build-cached-image]
resource: pr-develop
trigger: true
version: every
Expand Down

0 comments on commit fb1f1f0

Please sign in to comment.