Tests on CircleCI

* version one
This commit is contained in:
Michel Oosterhof 2019-05-25 11:09:10 +04:00 committed by GitHub
parent 73fda01b1a
commit efa4df978f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 28 additions and 2 deletions

23
.circleci/config.yml Normal file
View File

@ -0,0 +1,23 @@
version: 2
jobs:
build: # required for runs that don't use workflows
docker:
- image: circleci/python:3.7.2
steps:
- checkout
- run:
command: |
virtualenv cowrie-env
. cowrie-env/bin/activate
pip install -r requirements.txt
pip install -r requirements-dev.txt
- run:
command: |
. cowrie-env/bin/activate
flake8 --count --application-import-names cowrie --max-line-length=120 --statistics src
python setup.py build sdist bdist
make -C docs html
- run:
command: |
. cowrie-env/bin/activate
PYTHONPATH=`pwd`/src trial cowrie

View File

@ -2,6 +2,7 @@ Cowrie
######
|travis|_
|circleci|_
|codecov|_
Welcome to the Cowrie GitHub repository
@ -106,9 +107,11 @@ Many people have contributed to Cowrie over the years. Special thanks to:
* Florian Pelgrim (craneworks) for his work on code cleanup and Docker.
* And many many others.
.. |travis| image:: https://travis-ci.com/cowrie/cowrie.svg?branch=master
.. _travis: https://travis-ci.com/cowrie/cowrie
.. |circleci| image:: https://circleci.com/gh/cowrie/cowrie.svg?style=svg
.. _circleci: https://circleci.com/gh/cowrie/cowrie
.. |codecov| image:: https://codecov.io/gh/cowrie/cowrie/branch/master/graph/badge.svg
.. _codecov: https://codecov.io/gh/cowrie/cowrie
.. _codecov: https://codecov.io/gh/cowrie/cowrie