Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions codecov.yaml → codecov.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# https://docs.codecov.io/docs/commit-status
codecov:
notify:
require_ci_to_pass: yes
wait_for_ci: true
require_ci_to_pass: yes

coverage:
status:
Expand All @@ -10,7 +10,7 @@ coverage:
# basic
target: 0%
threshold: 0%
base: 0%
base: auto
# advanced
branches: null
if_no_uploads: error
Expand Down
8 changes: 6 additions & 2 deletions scripts/coverage.sh
Original file line number Diff line number Diff line change
@@ -1,10 +1,14 @@
#!/usr/bin/env bash

set -e
set -o pipefail

# Validate the configurations.
curl --data-binary @codecov.yml https://codecov.io/validate

DIR="${1}"
cd ${DIR}
cd "${DIR}" || exit

dart pub global activate coverage
dart run coverage:test_with_coverage --port=9292
format_coverage --lcov --in=coverage --out=coverage.lcov --report-on=lib

Loading