Skip to content

Commit

Permalink
Merge pull request #66 from gleybersonandrade/setup
Browse files Browse the repository at this point in the history
Change setup.py to alert when Travis fails
  • Loading branch information
hdiogenes authored Sep 15, 2020
2 parents eb43bbe + 1bd3424 commit 4ed93db
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -127,6 +127,8 @@ def run(self):
check_call(cmd, shell=True)
except CalledProcessError as exc:
print(exc)
print('Unit tests failed. Fix the errors above and try again.')
sys.exit(-1)


class TestCoverage(Test):
Expand All @@ -142,6 +144,8 @@ def run(self):
check_call(cmd, shell=True)
except CalledProcessError as exc:
print(exc)
print('Coverage tests failed. Fix the errors above and try again.')
sys.exit(-1)


class Linter(SimpleCommand):
Expand Down

0 comments on commit 4ed93db

Please sign in to comment.