Skip to content

Commit 4c72d59

Browse files
author
Matthew Fisher
committed
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/
1 parent ce8ef37 commit 4c72d59

4 files changed

Lines changed: 8 additions & 1 deletion

File tree

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
11
rootfs/bin/minio
22
rootfs/bin/boot
33
vendor/
4+
coverage.txt

.travis.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,6 @@ sudo: required
1111
install:
1212
- make bootstrap
1313
script:
14-
- DEIS_REGISTRY='' make test build docker-build
14+
- DEIS_REGISTRY='' make test-cover build docker-build
1515
after_success:
1616
- bash <(curl -s https://codecov.io/bash)

Makefile

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,9 @@ build:
3333
test:
3434
${DEV_ENV_CMD} go test ${TEST_PACKAGES}
3535

36+
test-cover:
37+
${DEV_ENV_CMD} test-cover.sh
38+
3639
docker-build: build
3740
# build the main image
3841
docker build --rm -t ${IMAGE} rootfs

codecov.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
codecov:
2+
branch: master
3+
slug: "deis/minio"

0 commit comments

Comments
 (0)