Skip to content

Commit

Permalink
ci: make code-climate utils runnable via rake concourse:task
Browse files Browse the repository at this point in the history
  • Loading branch information
flavorjones committed Apr 22, 2019
1 parent 899c86f commit d53d240
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 7 deletions.
2 changes: 1 addition & 1 deletion concourse/nokogiri-pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ jobs:
params:
NOKOGIRI_USE_SYSTEM_LIBRARIES: t
% if ruby_version == Concourse.production_rubies.last
CC_TEST_REPORTER_ID: {{code_climate_reporter_id_nokogiri}}
CC_TEST_REPORTER_ID: ((code_climate_reporter_id_nokogiri))
% end
run:
path: ci/concourse/tasks/rake-test/run.sh
Expand Down
2 changes: 1 addition & 1 deletion concourse/nokogiri-pr.yml.generated
Original file line number Diff line number Diff line change
Expand Up @@ -300,7 +300,7 @@ jobs:
path: nokogiri
params:
NOKOGIRI_USE_SYSTEM_LIBRARIES: t
CC_TEST_REPORTER_ID: {{code_climate_reporter_id_nokogiri}}
CC_TEST_REPORTER_ID: ((code_climate_reporter_id_nokogiri))
run:
path: ci/concourse/tasks/rake-test/run.sh
on_failure: { aggregate: [*notify_failure_to_irc, *notify_failure_to_pr] }
Expand Down
2 changes: 1 addition & 1 deletion concourse/nokogiri.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ jobs:
params:
NOKOGIRI_USE_SYSTEM_LIBRARIES: t
% if ruby_version == Concourse.production_rubies.last
CC_TEST_REPORTER_ID: {{code_climate_reporter_id_nokogiri}}
CC_TEST_REPORTER_ID: ((code_climate_reporter_id_nokogiri))
GIT_BRANCH: master
% end
run:
Expand Down
2 changes: 1 addition & 1 deletion concourse/nokogiri.yml.generated
Original file line number Diff line number Diff line change
Expand Up @@ -252,7 +252,7 @@ jobs:
- name: nokogiri
params:
NOKOGIRI_USE_SYSTEM_LIBRARIES: t
CC_TEST_REPORTER_ID: {{code_climate_reporter_id_nokogiri}}
CC_TEST_REPORTER_ID: ((code_climate_reporter_id_nokogiri))
GIT_BRANCH: master
run:
path: ci/concourse/tasks/rake-test/run.sh
Expand Down
5 changes: 2 additions & 3 deletions concourse/shared/code-climate.sh
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,8 @@ function code-climate-setup {

export CI_NAME="concourse"

./${CC_CLI} env
./${CC_CLI} before-build
./${CC_CLI} env || true
./${CC_CLI} before-build || true
fi

restore-option-xtrace
Expand All @@ -43,7 +43,6 @@ function code-climate-shipit {
if [ -z "${CC_TEST_REPORTER_ID:-}" ] ; then
echo "WARNING: code-climate-shipit: CC_TEST_REPORTER_ID is not set, skipping."
else
# let's remove the `|| true` once all pull requests from pre-simplecov are cleared out
./${CC_CLI} after-build || true
fi

Expand Down

0 comments on commit d53d240

Please sign in to comment.