From efa4df978fe9865dd78dee2a0329c620290895ea Mon Sep 17 00:00:00 2001 From: Michel Oosterhof Date: Sat, 25 May 2019 11:09:10 +0400 Subject: [PATCH] Tests on CircleCI * version one --- .circleci/config.yml | 23 +++++++++++++++++++++++ docs/README.rst | 7 +++++-- 2 files changed, 28 insertions(+), 2 deletions(-) create mode 100644 .circleci/config.yml diff --git a/.circleci/config.yml b/.circleci/config.yml new file mode 100644 index 00000000..9e77538f --- /dev/null +++ b/.circleci/config.yml @@ -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 diff --git a/docs/README.rst b/docs/README.rst index 9e6eb594..153fd0bc 100644 --- a/docs/README.rst +++ b/docs/README.rst @@ -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