Merge pull request #318 from docker/post-to-codecov

Re-enable pushing coverage reports to codecov.io
This commit is contained in:
Ying Li
2015-12-02 15:45:51 -08:00
2 changed files with 7 additions and 3 deletions

View File

@@ -32,7 +32,7 @@ _space := $(empty) $(empty)
# go cover test variables
COVERDIR=.cover
COVERPROFILE=$(COVERDIR)/cover.out
COVERPROFILE?=$(COVERDIR)/cover.out
COVERMODE=count
PKGS = $(shell go list ./... | tr '\n' ' ')

View File

@@ -16,6 +16,8 @@ machine:
BASE_STABLE: ../../../$HOME/.gvm/pkgsets/stable/global/$BASE_DIR
# Workaround Circle parsing dumb bugs and/or YAML wonkyness
CIRCLE_PAIN: "mode: set"
# Put the coverage profile somewhere codecov's script can find it
COVERPROFILE: coverage.out
hosts:
# Not used yet
@@ -72,8 +74,10 @@ test:
post:
- gvm use stable && make covmerge:
timeout: 600
parallel: true
pwd: $BASE_STABLE
# Report to codecov.io
# - bash <(curl -s https://codecov.io/bash):
# pwd: $BASE_STABLE
- bash <(curl -s https://codecov.io/bash):
parallel: true
pwd: $BASE_STABLE