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
This commit is contained in:
Peter Šurda 2018-07-22 13:20:07 +02:00
parent e1d2ead701
commit 3b4d73d291
Signed by untrusted user: PeterSurda
GPG Key ID: 0C5F50C0B5F37D87
2 changed files with 6 additions and 1 deletions

View File

@ -8,4 +8,6 @@ addons:
- libcap-dev - libcap-dev
install: install:
- python setup.py install - python setup.py install
script: pybitmessage -t script:
- python checkdeps.py
- pybitmessage -t

View File

@ -11,6 +11,7 @@ Limitations:
""" """
import os import os
import sys
from distutils.errors import CompileError from distutils.errors import CompileError
try: try:
from setuptools.dist import Distribution from setuptools.dist import Distribution
@ -161,5 +162,7 @@ if (not compiler or prereqs) and OPSYS in PACKAGE_MANAGER:
if not compiler: if not compiler:
compilerToPackages() compilerToPackages()
prereqToPackages() prereqToPackages()
if mandatory:
sys.exit(1)
else: else:
print("All the dependencies satisfied, you can install PyBitmessage") print("All the dependencies satisfied, you can install PyBitmessage")