Skip to content
This repository has been archived by the owner on Jun 10, 2024. It is now read-only.

Commit

Permalink
Added scripts
Browse files Browse the repository at this point in the history
  • Loading branch information
cjlucas committed Aug 16, 2015
1 parent e2a26ec commit 3b4d28c
Show file tree
Hide file tree
Showing 2 changed files with 30 additions and 0 deletions.
21 changes: 21 additions & 0 deletions tool/scrape_json.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
#!/usr/bin/env python

#
# Scrape json from dart_coveralls because it's terrible and only dumps json to stdout
#

import sys

def main():
lines = sys.stdin.readlines()

for i, l in enumerate(lines):
if l.startswith('{'):
break

for l in lines[i:]:
print(l.strip("\r\n"))


if __name__ == '__main__':
main()
9 changes: 9 additions & 0 deletions tool/send_coveralls.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
#!/bin/bash

mkdir coverage

for f in test/*_test.dart; do
dart_coveralls report --dry-run -p $f | tool/scrape_json.py > coverage/$(basename $f).json
done

cpp-coverage -b lib/src -t faketoken --dump coverage/cpp_coverage.json

0 comments on commit 3b4d28c

Please sign in to comment.