-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #27 from apiology/update-from-cookiecutter-2021-06…
…-06-1310 Update from cookiecutter
- Loading branch information
Showing
5 changed files
with
61 additions
and
15 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,17 @@ | ||
# frozen_string_literal: true | ||
|
||
desc 'Rebaseline quality thresholds to last commit' | ||
desc 'Ensure that any locally ratcheted coverage metrics are cleared back ' \ | ||
'to git baseline' | ||
task :clear_metrics do |_t| | ||
ret = | ||
system('git checkout coverage/.last_run.json') | ||
raise unless ret | ||
|
||
# Without this old lines which are removed are still counted, | ||
# leading to inconsistent coverage percentages between runs. | ||
# | ||
# need to save coverage/.last_run.json | ||
ret = | ||
system('rm -fr coverage/assets coverage/.*.json.lock coverage/lcov/* coverage/index.html coverage/.resultset.json') | ||
raise unless ret | ||
end |