mirror of https://github.com/MISP/misp-modules
35 lines
815 B
YAML
35 lines
815 B
YAML
language: python
|
|
|
|
services:
|
|
- redis-server
|
|
|
|
cache: pip
|
|
|
|
python:
|
|
- "3.6"
|
|
- "3.6-dev"
|
|
- "3.7-dev"
|
|
|
|
install:
|
|
- pip install pipenv
|
|
- pipenv install --dev
|
|
|
|
script:
|
|
- pipenv run coverage run -m --parallel-mode --source=misp_modules misp_modules.__init__ -l 127.0.0.1 &
|
|
- pid=$!
|
|
- sleep 5
|
|
- pipenv run nosetests --with-coverage --cover-package=misp_modules
|
|
- kill -s INT $pid
|
|
- pushd ~/
|
|
- pipenv run coverage run -m --parallel-mode --source=misp_modules misp_modules.__init__ -s -l 127.0.0.1 &
|
|
- pid=$!
|
|
- popd
|
|
- sleep 5
|
|
- pipenv run nosetests --with-coverage --cover-package=misp_modules
|
|
- kill -s INT $pid
|
|
- pipenv run flake8 --ignore=E501,W503 misp_modules
|
|
|
|
after_success:
|
|
- pipenv run coverage combine .coverage*
|
|
- pipenv run codecov
|