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:
parent
e1d2ead701
commit
3b4d73d291
|
@ -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
|
||||||
|
|
|
@ -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")
|
||||||
|
|
Loading…
Reference in New Issue
Block a user