From 4c72d5911f941f6ff3b620df923ebcb05fe8c244 Mon Sep 17 00:00:00 2001 From: Matthew Fisher Date: Wed, 2 Nov 2016 08:48:20 -0700 Subject: [PATCH] fix(codecov): add test-cover target Travis wasn't generating a coverage report for codecov so nothing was being displayed at https://codecov.io/gh/deis/minio/ --- .gitignore | 1 + .travis.yml | 2 +- Makefile | 3 +++ codecov.yml | 3 +++ 4 files changed, 8 insertions(+), 1 deletion(-) create mode 100644 codecov.yml diff --git a/.gitignore b/.gitignore index b4d8ee8..937cfc3 100644 --- a/.gitignore +++ b/.gitignore @@ -1,3 +1,4 @@ rootfs/bin/minio rootfs/bin/boot vendor/ +coverage.txt diff --git a/.travis.yml b/.travis.yml index 1fc0a36..ab95bba 100644 --- a/.travis.yml +++ b/.travis.yml @@ -11,6 +11,6 @@ sudo: required install: - make bootstrap script: - - DEIS_REGISTRY='' make test build docker-build + - DEIS_REGISTRY='' make test-cover build docker-build after_success: - bash <(curl -s https://codecov.io/bash) diff --git a/Makefile b/Makefile index b3f5c64..c8f3284 100644 --- a/Makefile +++ b/Makefile @@ -33,6 +33,9 @@ build: test: ${DEV_ENV_CMD} go test ${TEST_PACKAGES} +test-cover: + ${DEV_ENV_CMD} test-cover.sh + docker-build: build # build the main image docker build --rm -t ${IMAGE} rootfs diff --git a/codecov.yml b/codecov.yml new file mode 100644 index 0000000..2e5537b --- /dev/null +++ b/codecov.yml @@ -0,0 +1,3 @@ +codecov: + branch: master + slug: "deis/minio"