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

Commit

Permalink
Added curl call
Browse files Browse the repository at this point in the history
  • Loading branch information
cjlucas committed Aug 16, 2015
1 parent 73e40b9 commit e8713e5
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
5 changes: 5 additions & 0 deletions tool/coveralls_merge.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
#!/usr/bin/env python

#
# merges multiple coverall json reports into one
#

import json
import os
import sys
Expand Down Expand Up @@ -53,6 +57,7 @@ def main():
assert os.path.isfile(f)
sources.append(get_json_from_file(f))

# pull git information
for s in sources:
for key in ['git', 'branch', 'remotes']:
if key in s:
Expand Down
4 changes: 3 additions & 1 deletion tool/send_coveralls.sh
Original file line number Diff line number Diff line change
Expand Up @@ -11,4 +11,6 @@ done
echo "Covering cpp"
cpp-coveralls -b lib/src -t faketoken --dump coverage/cpp_coverage.json

python tool/coveralls_merge.py coverage/* coverage/merged.json
merged_json=coverage/merged.json
python tool/coveralls_merge.py coverage/* $merged_json
curl -v -F json_file=@$merged_json https://coveralls.io/api/v1/jobs

0 comments on commit e8713e5

Please sign in to comment.