Skip to content
This repository has been archived by the owner on Dec 29, 2020. It is now read-only.

Commit

Permalink
feat(build): add code climate jobs
Browse files Browse the repository at this point in the history
  • Loading branch information
ssube committed Dec 22, 2019
1 parent d32c17c commit 6a3e289
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 0 deletions.
18 changes: 18 additions & 0 deletions .gitlab-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -173,6 +173,24 @@ test-schema-pgprom-pg11:
PG_MAJOR: "11"

# commit status
climate-pending:
stage: status-pre
extends:
- .build-climate

script:
- cc-test-reporter before-build

climate-success:
stage: status-post
extends:
- .build-climate

dependencies:
- test-go
script:
- make upload-climate

codecov-success:
stage: status-post
extends:
Expand Down
7 changes: 7 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,13 @@ release-run: ## create a release
$(NODE_BIN)/standard-version --sign $(RELEASE_OPTS)
GIT_OPTIONS=--tags $(MAKE) git-push

upload-climate:
cc-test-reporter after-build \
--debug \
-r "$(shell echo "${CODECLIMATE_SECRET}" | base64 -d)" \
-t gocov \
-p out

upload-codecov:
codecov --disable=gcov \
--file=out/cover.out \
Expand Down

0 comments on commit 6a3e289

Please sign in to comment.