Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
anorth committed Sep 9, 2019
1 parent 15113c0 commit 9423fd5
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 12 deletions.
4 changes: 2 additions & 2 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ jobs:
curl --location https://github.com/stedolan/jq/releases/download/jq-1.6/jq-osx-amd64 --output $HOME/.bin/jq
chmod +x $HOME/.bin/jq
- run:
name: Load submodules
name: Load submodules
command: git submodule update --init --recursive
- go_build:
cmd: "deps"
Expand Down Expand Up @@ -780,7 +780,7 @@ commands:
trap "go run github.com/jstemmer/go-junit-report < test-results/go-test-suite/go-test.out > test-results/go-test-suite/go-test-report.xml" EXIT
export TEST_PACKAGES="$(go list ./... | circleci tests split)"
# Parallelism and timeout set to support medium-class containers, for builds on forked repos.
go run ./build test -cover -coverprofile coverage.out -timeout=30m -parallel=4 -functional=<< parameters.functional >> -integration=<< parameters.integration >> -sectorbuilder=<< parameters.sector_builder_tests >> -unit=<< parameters.unit >> -v 2>&1 | tee test-results/go-test-suite/go-test.out
go run ./build test -cover -coverprofile coverage.out -covermode=atomic -timeout=30m -parallel=4 -functional=<< parameters.functional >> -integration=<< parameters.integration >> -sectorbuilder=<< parameters.sector_builder_tests >> -unit=<< parameters.unit >> -v 2>&1 | tee test-results/go-test-suite/go-test.out
mkdir -p /tmp/artifacts
mv coverage.out /tmp/artifacts/coverage.out
- codecov/upload:
Expand Down
29 changes: 19 additions & 10 deletions .codecov.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,17 +4,26 @@ coverage:
precision: 0

status:
project: off
patch: off
changes: off
project: false
patch: false
changes: false

comment: off
# layout: "diff, flags, files"
# behavior: default
# require_changes: false # if true: only post the comment if coverage changes
# require_base: yes # [yes :: must have a base report to post]
# require_head: yes # [yes :: must have a head report to post]
# branches: null # branch names that can post comment
# https://docs.codecov.io/docs/pull-request-comments
comment:
layout: "diff" #"diff, flags, files"
behavior: default
require_changes: false # if true: only post the comment if coverage changes
require_base: true # [yes :: must have a base report to post]
require_head: true # [yes :: must have a head report to post]
branches: [] # branch names that can post comment

ignore:
- "*/testing.go"

codecov:
notify:
# yes: will delay sending notifications until all ci is finished
# no: will send notifications without checking ci status and wait till "after_n_builds" are uploaded
require_ci_to_pass: false
# number of expected builds to receive before sending notifications
after_n_builds: 3

0 comments on commit 9423fd5

Please sign in to comment.