From a0c6b4e22cd697bba92d355fa5ee667d6f091007 Mon Sep 17 00:00:00 2001 From: Shunsuke Suzuki Date: Mon, 22 Feb 2021 07:29:24 +0900 Subject: [PATCH] ci: fix to upload test coverage to Code Climate --- .drone.yml | 2 +- .gitignore | 1 + ci/test.sh | 2 +- 3 files changed, 3 insertions(+), 2 deletions(-) diff --git a/.drone.yml b/.drone.yml index 26c7520..e64010e 100644 --- a/.drone.yml +++ b/.drone.yml @@ -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 diff --git a/.gitignore b/.gitignore index 5314e43..3cbf028 100644 --- a/.gitignore +++ b/.gitignore @@ -2,3 +2,4 @@ /coverage.txt /coverage.out /.git-rm-branch.yml +/.code-climate diff --git a/ci/test.sh b/ci/test.sh index 507bc6d..bca33f9 100644 --- a/ci/test.sh +++ b/ci/test.sh @@ -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"