Skip to content

Commit

Permalink
ci: fix to upload test coverage to Code Climate
Browse files Browse the repository at this point in the history
  • Loading branch information
suzuki-shunsuke committed Feb 21, 2021
1 parent ec0ac38 commit a0c6b4e
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .drone.yml
Expand Up @@ -55,7 +55,7 @@ steps:
image: golang:1.16.0
commands:
# bash and cgo seem to be required
- bash ci/test.sh "$DRONE_REPO_NAME"
- bash ci/test.sh "${DRONE_REPO_NAME}/v2"
environment:
CC_TEST_REPORTER_ID:
from_secret: cc_test_reporter_id
Expand Down
1 change: 1 addition & 0 deletions .gitignore
Expand Up @@ -2,3 +2,4 @@
/coverage.txt
/coverage.out
/.git-rm-branch.yml
/.code-climate
2 changes: 1 addition & 1 deletion ci/test.sh
Expand Up @@ -11,7 +11,7 @@ if [ -z "$repo_name" ]; then
fi

mkdir -p bin
curl -L -o bin/cc-test-reporter https://codeclimate.com/downloads/test-reporter/test-reporter-0.6.3-linux-amd64
curl -L -o bin/cc-test-reporter https://codeclimate.com/downloads/test-reporter/test-reporter-0.9.0-linux-amd64
chmod a+x bin/cc-test-reporter
export PATH="$PWD/bin:$PATH"
bash scripts/test-code-climate.sh "$repo_name"

0 comments on commit a0c6b4e

Please sign in to comment.