From af828ef8dbafd67e130b687d289348370d3237f2 Mon Sep 17 00:00:00 2001 From: Michael Mayer Date: Tue, 6 Nov 2018 17:49:03 +0100 Subject: [PATCH] Add codecov.sh script #58 --- Makefile | 2 +- docker-compose.travis.yml | 12 ++++++++++++ scripts/codecov.sh | 3 +++ 3 files changed, 16 insertions(+), 1 deletion(-) create mode 100755 scripts/codecov.sh diff --git a/Makefile b/Makefile index 2e8998ac8..9d7508d7f 100644 --- a/Makefile +++ b/Makefile @@ -42,7 +42,7 @@ test-race: $(GOTEST) -race -timeout 60m -v ./internal/... test-codecov: $(GOTEST) -timeout 30m -coverprofile=coverage.txt -covermode=atomic -v ./internal/... - bash <(curl -s https://codecov.io/bash) + scripts/codecov.sh test-coverage: $(GOTEST) -timeout 30m -coverprofile=coverage.txt -covermode=atomic -v ./internal/... $(GOTOOL) cover -html=coverage.txt -o coverage.html diff --git a/docker-compose.travis.yml b/docker-compose.travis.yml index 43b02a8cc..582731d61 100644 --- a/docker-compose.travis.yml +++ b/docker-compose.travis.yml @@ -7,6 +7,18 @@ services: command: tail -f /dev/null environment: - CODECOV_TOKEN + - CODECOV_ENV + - CODECOV_TOKEN + - CODECOV_URL + - CODECOV_SLUG + - VCS_COMMIT_ID + - VCS_BRANCH_NAME + - VCS_PULL_REQUEST + - VCS_SLUG + - VCS_TAG + - CI_BUILD_URL + - CI_BUILD_ID + - CI_JOB_ID database: image: mysql:latest diff --git a/scripts/codecov.sh b/scripts/codecov.sh new file mode 100755 index 000000000..f9a9e6b16 --- /dev/null +++ b/scripts/codecov.sh @@ -0,0 +1,3 @@ +#!/usr/bin/env bash + +bash <(curl -s https://codecov.io/bash) \ No newline at end of file