Skip to content

Commit 08127d1

Browse files
authored
πŸ’š Fix invalid codecov config (#622)
1 parent ea8d400 commit 08127d1

File tree

2 files changed

+9
-5
lines changed

2 files changed

+9
-5
lines changed

β€Žcodecov.yaml renamed to β€Žcodecov.yml

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
# https://docs.codecov.io/docs/commit-status
21
codecov:
32
notify:
4-
require_ci_to_pass: yes
3+
wait_for_ci: true
4+
require_ci_to_pass: yes
55

66
coverage:
77
status:
@@ -10,7 +10,7 @@ coverage:
1010
# basic
1111
target: 0%
1212
threshold: 0%
13-
base: 0%
13+
base: auto
1414
# advanced
1515
branches: null
1616
if_no_uploads: error

β€Žscripts/coverage.sh

+6-2
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,14 @@
11
#!/usr/bin/env bash
22

3+
set -e
34
set -o pipefail
45

6+
# Validate the configurations.
7+
curl --data-binary @codecov.yml https://codecov.io/validate
8+
59
DIR="${1}"
6-
cd ${DIR}
10+
cd "${DIR}" || exit
11+
712
dart pub global activate coverage
813
dart run coverage:test_with_coverage --port=9292
914
format_coverage --lcov --in=coverage --out=coverage.lcov --report-on=lib
10-

0 commit comments

Comments
Β (0)