Skip to content

Commit

Permalink
Merge pull request #155 from deanishe/ci/coveralls
Browse files Browse the repository at this point in the history
Fix coveralls command
  • Loading branch information
deanishe committed May 20, 2020
2 parents abc96bc + e43b07b commit 0659f0b
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,5 +24,5 @@ script:

after_success:
- python-codacy-coverage -r coverage.xml
- cd tests && coveralls
- coveralls
- bash <(curl -s https://codecov.io/bash)
10 changes: 8 additions & 2 deletions modd.conf
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,17 @@ tests/test_web*.py {

modd.conf
workflow/workflow.py
workflow/workflow3.py
tests/test_workflow*.py {
tests/test_workflow*.py
!tests/test_workflow3.py {
prep: ./run-tests.sh -c workflow.workflow tests/test_workflow*.py
}

modd.conf
workflow/workflow3.py
tests/test_workflow3.py {
prep: ./run-tests.sh -c workflow.workflow3 tests/test_workflow3.py
}

modd.conf
workflow/util.py
tests/test_util*.py {
Expand Down
5 changes: 4 additions & 1 deletion workflow/workflow3.py
Original file line number Diff line number Diff line change
Expand Up @@ -717,5 +717,8 @@ def warn_empty(self, title, subtitle=u'', icon=None):

def send_feedback(self):
"""Print stored items to console/Alfred as JSON."""
json.dump(self.obj, sys.stdout)
if self.debugging:
json.dump(self.obj, sys.stdout, indent=2, separators=(',', ': '))
else:
json.dump(self.obj, sys.stdout)
sys.stdout.flush()

0 comments on commit 0659f0b

Please sign in to comment.