Skip to content

Commit

Permalink
Test coala -B --json command
Browse files Browse the repository at this point in the history
  • Loading branch information
shreyans800755 committed Dec 3, 2017
1 parent 74fe49a commit 9a07d88
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 0 deletions.
1 change: 1 addition & 0 deletions .misc/appveyor.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@ install:
build: false # Not a C# project, build stuff at the test step instead.

test_script:
- "%CMD_IN_ENV% coala -B --json"
- "%CMD_IN_ENV% py.test"
- "%CMD_IN_ENV% python setup.py install"

Expand Down
1 change: 1 addition & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,7 @@ script:
sed -i.bak '/bears = GitCommitBear/d' .coafile
fi
- coala --non-interactive
- coala -B --json
- python setup.py docs

after_success:
Expand Down
2 changes: 2 additions & 0 deletions circle.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,8 @@ test:
parallel: true
- coala --non-interactive:
parallel: true
- coala -B --json:
parallel: false
- codecov:
parallel: true
- python setup.py docs
1 change: 1 addition & 0 deletions coalib/output/ConsoleInteraction.py
Original file line number Diff line number Diff line change
Expand Up @@ -942,6 +942,7 @@ def print_bears(bears,
from coalib.output.JSONEncoder import create_json_encoder
JSONEncoder = create_json_encoder(use_relpath=args.relpath)
json_output = {'bears': results}
print(json_output)
import json
json_formatted_output = json.dumps(json_output,
cls=JSONEncoder,
Expand Down

0 comments on commit 9a07d88

Please sign in to comment.