mirror of https://github.com/AMT-Cheif/drift.git
Move coverage uploading into same Cirrus task
This commit is contained in:
parent
884f5053a0
commit
47a032c645
|
@ -3,15 +3,10 @@ container:
|
|||
image: "google/dart:latest"
|
||||
|
||||
task:
|
||||
name: Analysis and Tests
|
||||
pub_cache:
|
||||
folder: $HOME/.pub-cache
|
||||
pub_get_script: tool/pub_get.sh
|
||||
analyze_script: tool/analyze.sh
|
||||
test_moor_script: tool/test_moor.sh
|
||||
test_sqlparser_script: tool/test_sqlparser.sh
|
||||
|
||||
upload_coverage_task:
|
||||
name: Upload coverage
|
||||
depends_on: [task]
|
||||
format_coverage_script: tool/upload_coverage.sh
|
|
@ -9,16 +9,10 @@ Future main() async {
|
|||
packagesPath: 'moor/.packages',
|
||||
);
|
||||
|
||||
final potentialFiles = [
|
||||
final coverage = await parseCoverage([
|
||||
File('moor/coverage.json'),
|
||||
File('sqlparser/coverage.json'),
|
||||
];
|
||||
|
||||
final existingFiles = [
|
||||
for (var file in potentialFiles) if (file.existsSync()) file
|
||||
];
|
||||
|
||||
final coverage = await parseCoverage(existingFiles, 1);
|
||||
], 1);
|
||||
|
||||
// report coverage for the moor and moor_generator package
|
||||
final lcov = await LcovFormatter(
|
||||
|
|
Loading…
Reference in New Issue