mirror of https://github.com/MISP/PyMISP
Remove some python versions from travis
parent
a5531990ae
commit
ed441d6356
11
.travis.yml
11
.travis.yml
|
@ -2,15 +2,19 @@ language: python
|
||||||
|
|
||||||
cache: pip
|
cache: pip
|
||||||
|
|
||||||
|
addons:
|
||||||
|
apt:
|
||||||
|
sources: [ 'ubuntu-toolchain-r-test' ]
|
||||||
|
packages:
|
||||||
|
- libstdc++6
|
||||||
|
- libfuzzy-dev
|
||||||
|
|
||||||
python:
|
python:
|
||||||
- "2.7"
|
- "2.7"
|
||||||
- "3.4"
|
|
||||||
- "3.5"
|
- "3.5"
|
||||||
- "3.5-dev"
|
- "3.5-dev"
|
||||||
- "3.6"
|
- "3.6"
|
||||||
- "3.6-dev"
|
- "3.6-dev"
|
||||||
- "3.7-dev"
|
|
||||||
- "nightly"
|
|
||||||
|
|
||||||
install:
|
install:
|
||||||
- pip install -U nose
|
- pip install -U nose
|
||||||
|
@ -18,6 +22,7 @@ install:
|
||||||
- pip install codecov
|
- pip install codecov
|
||||||
- pip install requests-mock pytest
|
- pip install requests-mock pytest
|
||||||
- pip install https://github.com/lief-project/packages/raw/lief-master-latest/pylief-0.7.0.dev.zip
|
- pip install https://github.com/lief-project/packages/raw/lief-master-latest/pylief-0.7.0.dev.zip
|
||||||
|
- pip install git+https://github.com/kbandla/pydeep.git
|
||||||
- pip install python-magic
|
- pip install python-magic
|
||||||
- pip install .
|
- pip install .
|
||||||
- pushd tests
|
- pushd tests
|
||||||
|
|
|
@ -2,6 +2,7 @@
|
||||||
# -*- coding: utf-8 -*-
|
# -*- coding: utf-8 -*-
|
||||||
|
|
||||||
from pymisp.tools import FileObject, PEObject, ELFObject, MachOObject, MISPObjectException
|
from pymisp.tools import FileObject, PEObject, ELFObject, MachOObject, MISPObjectException
|
||||||
|
import warnings
|
||||||
|
|
||||||
try:
|
try:
|
||||||
import lief
|
import lief
|
||||||
|
@ -55,15 +56,13 @@ def make_binary_objects(filepath):
|
||||||
elif isinstance(lief_parsed, lief.MachO.Binary):
|
elif isinstance(lief_parsed, lief.MachO.Binary):
|
||||||
return make_macho_objects(lief_parsed, misp_file)
|
return make_macho_objects(lief_parsed, misp_file)
|
||||||
except lief.bad_format as e:
|
except lief.bad_format as e:
|
||||||
# print('\tBad format: ', e)
|
warnings.warn('\tBad format: ', e)
|
||||||
pass
|
|
||||||
except lief.bad_file as e:
|
except lief.bad_file as e:
|
||||||
# print('\tBad file: ', e)
|
warnings.warn('\tBad file: ', e)
|
||||||
pass
|
|
||||||
except lief.parser_error as e:
|
except lief.parser_error as e:
|
||||||
# print('\tParser error: ', e)
|
warnings.warn('\tParser error: ', e)
|
||||||
pass
|
|
||||||
except FileTypeNotImplemented as e: # noqa
|
except FileTypeNotImplemented as e: # noqa
|
||||||
# print(e)
|
warnings.warn(e)
|
||||||
pass
|
else:
|
||||||
|
warnings.warn('Please install lief, documentation here: https://github.com/lief-project/LIEF')
|
||||||
return misp_file, None, None
|
return misp_file, None, None
|
||||||
|
|
Loading…
Reference in New Issue