From 3b4d73d29115257734c0d54f54071fb77b41a1ad Mon Sep 17 00:00:00 2001 From: Peter Surda Date: Sun, 22 Jul 2018 13:20:07 +0200 Subject: [PATCH] Travis should test mandatory dependencies - travis script tests mandatory dependencies - may require additional commits as I don't know exactly how travis handles errors from multiple scripts --- .travis.yml | 4 +++- checkdeps.py | 3 +++ 2 files changed, 6 insertions(+), 1 deletion(-) 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")