Skip to content

Commit 02a1669

Browse files
committed
Introduces CI with Travis and tox, fixes corpetty#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
1 parent cb91fb3 commit 02a1669

File tree

3 files changed

+19
-0
lines changed

3 files changed

+19
-0
lines changed

.travis.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
sudo: false
2+
language: python
3+
python:
4+
- "2.7"
5+
- "3.6"
6+
install: pip install tox-travis
7+
script: tox

README.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,7 @@
11
# py-etherscan-api module
2+
3+
[![Build Status](https://secure.travis-ci.org/corpetty/py-etherscan-api.png?branch=master)](http://travis-ci.org/corpetty/py-etherscan-api)
4+
25
EtherScan.io API python bindings
36

47
## Description

tox.ini

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
[tox]
2+
envlist = py27,py3
3+
4+
[testenv]
5+
deps =
6+
pytest
7+
-r{toxinidir}/pip-requirements.txt
8+
commands =
9+
python -m unittest discover --start-directory=tests/

0 commit comments

Comments
 (0)