From 02a1669b2db5913a6c7944ccf63412bbccda9be3 Mon Sep 17 00:00:00 2001 From: Andre Miras Date: Sat, 26 May 2018 16:09:01 +0200 Subject: [PATCH] Introduces CI with Travis and tox, fixes #20 Introduces Continuous Integration testing with Travis and tox. Checks few unit tests for Python 2.7 & 3.6 and verifies the module installs properly. Repository needs to be enabled in Travis with one click in: https://travis-ci.org/corpetty/py-etherscan-api --- .travis.yml | 7 +++++++ README.md | 3 +++ tox.ini | 9 +++++++++ 3 files changed, 19 insertions(+) create mode 100644 .travis.yml create mode 100644 tox.ini diff --git a/.travis.yml b/.travis.yml new file mode 100644 index 0000000..8327ded --- /dev/null +++ b/.travis.yml @@ -0,0 +1,7 @@ +sudo: false +language: python +python: + - "2.7" + - "3.6" +install: pip install tox-travis +script: tox diff --git a/README.md b/README.md index eea38f1..974ebd3 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,7 @@ # py-etherscan-api module + +[![Build Status](https://secure.travis-ci.org/corpetty/py-etherscan-api.png?branch=master)](http://travis-ci.org/corpetty/py-etherscan-api) + EtherScan.io API python bindings ## Description diff --git a/tox.ini b/tox.ini new file mode 100644 index 0000000..0322ff6 --- /dev/null +++ b/tox.ini @@ -0,0 +1,9 @@ +[tox] +envlist = py27,py3 + +[testenv] +deps = + pytest + -r{toxinidir}/pip-requirements.txt +commands = + python -m unittest discover --start-directory=tests/