mirror of https://github.com/MISP/misp-modules
Add coverage, update logging
parent
0089983661
commit
b24b16b30a
35
.travis.yml
35
.travis.yml
|
@ -5,28 +5,35 @@ cache: pip
|
|||
services:
|
||||
- redis-server
|
||||
|
||||
addons:
|
||||
apt:
|
||||
packages:
|
||||
- libpq5
|
||||
|
||||
python:
|
||||
- "3.3"
|
||||
- "3.4"
|
||||
- "3.5"
|
||||
- "3.5-dev"
|
||||
- "nightly"
|
||||
|
||||
install:
|
||||
- python setup.py install
|
||||
- pip install -U nose
|
||||
- pip install coveralls
|
||||
- pip install codecov
|
||||
- pip install -U -r REQUIREMENTS
|
||||
- pip install .
|
||||
|
||||
script:
|
||||
- misp-modules &
|
||||
- sleep 15
|
||||
- python setup.py test
|
||||
- pkill misp-modules
|
||||
- coverage run -m --parallel-mode --source=misp_modules misp_modules.__init__ &
|
||||
- pid=$!
|
||||
- sleep 5
|
||||
- nosetests --with-coverage --cover-package=misp_modules
|
||||
- kill -s INT $pid
|
||||
- pushd ~/
|
||||
- misp-modules -s &
|
||||
- coverage run -m --parallel-mode --source=misp_modules misp_modules.__init__ -s &
|
||||
- pid=$!
|
||||
- popd
|
||||
- sleep 15
|
||||
- python setup.py test
|
||||
- pkill misp-modules
|
||||
- sleep 5
|
||||
- nosetests --with-coverage --cover-package=misp_modules
|
||||
- kill -s INT $pid
|
||||
|
||||
after_success:
|
||||
- coverage combine .coverage*
|
||||
- codecov
|
||||
- coveralls
|
||||
|
|
|
@ -1,6 +1,8 @@
|
|||
# MISP modules
|
||||
|
||||
[](https://travis-ci.org/MISP/misp-modules)
|
||||
[](https://coveralls.io/github/MISP/misp-modules?branch=master)
|
||||
[](https://codecov.io/gh/MISP/misp-modules)
|
||||
|
||||
MISP modules are autonomous modules that can be used for expansion and other services in [MISP](https://github.com/MISP/MISP).
|
||||
|
||||
|
|
|
@ -188,9 +188,11 @@ def main():
|
|||
listen = args.l
|
||||
log = init_logger()
|
||||
if args.s:
|
||||
log.info('Launch MISP modules server from package.')
|
||||
load_package_helpers()
|
||||
mhandlers, loaded_modules = load_package_modules()
|
||||
else:
|
||||
log.info('Launch MISP modules server from current directory.')
|
||||
os.chdir(os.path.dirname(__file__))
|
||||
modulesdir = 'modules'
|
||||
helpersdir = 'helpers'
|
||||
|
|
Loading…
Reference in New Issue