Skip to content
This repository was archived by the owner on Oct 12, 2022. It is now read-only.

Commit 7bfaa8c

Browse files
authored
Merge pull request #2031 from wilzbach/update-codecov
Update CodeCov config merged-on-behalf-of: Petar Kirov <ZombineDev@users.noreply.github.com>
2 parents 7a154da + 73c42f8 commit 7bfaa8c

File tree

2 files changed

+24
-5
lines changed

2 files changed

+24
-5
lines changed

.circleci/run.sh

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -73,12 +73,9 @@ setup_repos() {
7373
# merge upstream branch with changes, s.t. we check with the latest changes
7474
if [ -n "${CIRCLE_PR_NUMBER:-}" ]; then
7575
local head=$(git rev-parse HEAD)
76-
git fetch https://github.com/dlang/$CIRCLE_PROJECT_REPONAME.git $base_branch
76+
git remote add upstream "https://github.com/dlang/$CIRCLE_PROJECT_REPONAME.git"
77+
git fetch -q upstream "+refs/pull/${CIRCLE_PR_NUMBER}/merge:"
7778
git checkout -f FETCH_HEAD
78-
local base=$(git rev-parse HEAD)
79-
git config user.name 'CI'
80-
git config user.email '<>'
81-
git merge -m "Merge $head into $base" $head
8279
fi
8380
8481
for proj in dmd ; do

.codecov.yml

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,30 @@
22

33
codecov:
44
notify:
5+
# We don't want to wait for the CodeCov report
6+
# See https://github.com/codecov/support/issues/312
7+
require_ci_to_pass: false
58
after_n_builds: 1 # send notifications after the first upload
9+
wait_for_ci: false
10+
611
bot: dlang-bot
12+
ci:
13+
# https://docs.codecov.io/docs/detecting-ci-services
14+
# Only CircleCi generates coverages files atm.
15+
# Don't wait for the other CIs
16+
- circleci.com
17+
- !dtest.dlang.io
18+
- !auto-tester.puremagic.com
19+
- !appveyor.com
20+
- !ci.dlang.io
21+
- !travis-ci.org
22+
23+
# At CircleCi, the PR is merged into `master` before the testsuite is run.
24+
# This allows CodeCov to adjust the resulting coverage diff, s.t. it matches
25+
# with the GitHub diff.
26+
# https://github.com/codecov/support/issues/363
27+
# https://docs.codecov.io/v4.3.6/docs/comparing-commits
28+
allow_coverage_offsets: true
729

830
coverage:
931
precision: 3

0 commit comments

Comments
 (0)