misp-modules/.travis.yml

57 lines
1.4 KiB
YAML
Raw Permalink Normal View History

2016-04-11 11:24:20 +02:00
language: python
2016-04-28 14:26:30 +02:00
services:
- redis-server
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"
2020-05-01 00:40:05 +02:00
- "3.8-dev"
2016-04-11 11:24:20 +02:00
install:
- sudo apt-get install libzbar0 libzbar-dev libpoppler-cpp-dev tesseract-ocr libfuzzy-dev libcaca-dev liblua5.3-dev
- pip install pipenv
2021-04-12 08:57:59 +02:00
- pip install -r REQUIREMENTS
# - pipenv install --dev
# install gtcaca
- git clone git://github.com/stricaud/gtcaca.git
- mkdir -p gtcaca/build
- pushd gtcaca/build
- cmake .. && make
- sudo make install
- popd
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-04-11 11:24:20 +02:00
script:
2021-04-12 10:13:25 +02:00
- pip install coverage
2021-04-12 09:09:24 +02:00
- 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
2021-04-12 09:09:24 +02:00
- nosetests --with-coverage --cover-package=misp_modules
2019-03-09 06:40:23 +01:00
- kill -s KILL $pid
- pushd ~/
2021-04-12 09:09:24 +02:00
- 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
2021-04-12 09:09:24 +02:00
- nosetests --with-coverage --cover-package=misp_modules
2019-03-09 06:40:23 +01:00
- kill -s KILL $pid
2021-04-12 11:12:56 +02:00
- pip install flake8
2021-06-11 14:52:28 +02:00
- flake8 --ignore=E501,W503,E226,E126 misp_modules
2016-08-12 14:51:26 +02:00
after_success:
2021-04-12 09:09:24 +02:00
- coverage combine .coverage*
- codecov