2016-04-11 11:24:20 +02:00
|
|
|
language: python
|
|
|
|
|
2016-04-28 14:26:30 +02:00
|
|
|
services:
|
|
|
|
- redis-server
|
|
|
|
|
2017-01-07 01:23:23 +01:00
|
|
|
cache: pip
|
|
|
|
|
2016-04-11 11:24:20 +02:00
|
|
|
python:
|
2017-05-24 07:39:18 +02:00
|
|
|
- "3.6"
|
|
|
|
- "3.6-dev"
|
2018-07-12 11:43:24 +02:00
|
|
|
- "3.7-dev"
|
2016-04-11 11:24:20 +02:00
|
|
|
|
2019-09-02 14:10:49 +02:00
|
|
|
before_install:
|
|
|
|
- docker build -t misp-modules --build-arg BUILD_DATE=$(date -u +"%Y-%m-%d") docker/
|
|
|
|
|
2016-04-11 11:24:20 +02:00
|
|
|
install:
|
2019-12-17 10:19:05 +01:00
|
|
|
- sudo apt-get install libzbar0 libzbar-dev libpoppler-cpp-dev tesseract-ocr libfuzzy-dev
|
2019-01-21 13:31:52 +01:00
|
|
|
- pip install pipenv
|
|
|
|
- pipenv install --dev
|
2019-12-04 17:15:22 +01:00
|
|
|
# install pyfaup
|
|
|
|
- git clone https://github.com/stricaud/faup.git
|
|
|
|
- pushd faup/build
|
|
|
|
- cmake .. && make
|
|
|
|
- sudo make install
|
|
|
|
- popd
|
2019-12-04 17:24:19 +01:00
|
|
|
- sudo ldconfig
|
2019-12-04 17:34:34 +01:00
|
|
|
- pushd faup/src/lib/bindings/python
|
2019-12-04 17:15:22 +01:00
|
|
|
- pip install .
|
|
|
|
- popd
|
2016-11-21 16:07:56 +01:00
|
|
|
|
2016-04-11 11:24:20 +02:00
|
|
|
script:
|
2019-01-21 13:31:52 +01:00
|
|
|
- pipenv run coverage run -m --parallel-mode --source=misp_modules misp_modules.__init__ -l 127.0.0.1 &
|
2016-08-12 14:51:26 +02:00
|
|
|
- pid=$!
|
|
|
|
- sleep 5
|
2019-01-21 13:31:52 +01:00
|
|
|
- pipenv run nosetests --with-coverage --cover-package=misp_modules
|
2019-03-09 06:40:23 +01:00
|
|
|
- kill -s KILL $pid
|
2016-06-24 03:12:31 +02:00
|
|
|
- pushd ~/
|
2019-01-21 13:31:52 +01:00
|
|
|
- pipenv run coverage run -m --parallel-mode --source=misp_modules misp_modules.__init__ -s -l 127.0.0.1 &
|
2016-08-12 14:51:26 +02:00
|
|
|
- pid=$!
|
2016-06-23 12:53:45 +02:00
|
|
|
- popd
|
2016-08-12 14:51:26 +02:00
|
|
|
- sleep 5
|
2019-01-21 13:31:52 +01:00
|
|
|
- pipenv run nosetests --with-coverage --cover-package=misp_modules
|
2019-03-09 06:40:23 +01:00
|
|
|
- kill -s KILL $pid
|
2019-10-29 09:34:34 +01:00
|
|
|
- pipenv run flake8 --ignore=E501,W503,E226 misp_modules
|
2016-08-12 14:51:26 +02:00
|
|
|
|
|
|
|
after_success:
|
2019-01-21 13:31:52 +01:00
|
|
|
- pipenv run coverage combine .coverage*
|
|
|
|
- pipenv run codecov
|