diff --git a/.travis.yml b/.travis.yml index 6b0e4916..5dbda892 100644 --- a/.travis.yml +++ b/.travis.yml @@ -8,4 +8,6 @@ addons: - libcap-dev install: - python setup.py install -script: pybitmessage -t +script: + - python checkdeps.py + - pybitmessage -t diff --git a/checkdeps.py b/checkdeps.py index f261c924..28b1e559 100755 --- a/checkdeps.py +++ b/checkdeps.py @@ -11,6 +11,7 @@ Limitations: """ import os +import sys from distutils.errors import CompileError try: from setuptools.dist import Distribution @@ -161,5 +162,7 @@ if (not compiler or prereqs) and OPSYS in PACKAGE_MANAGER: if not compiler: compilerToPackages() prereqToPackages() + if mandatory: + sys.exit(1) else: print("All the dependencies satisfied, you can install PyBitmessage")