Skip to content
This repository was archived by the owner on Aug 15, 2022. It is now read-only.

Commit 7d81a40

Browse files
author
Jeff Ammons
committed
Adding scaffolding and example testing file.
1 parent 22fb111 commit 7d81a40

File tree

5 files changed

+47
-0
lines changed

5 files changed

+47
-0
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,3 +2,4 @@
22
/rtmbot.conf
33
/plugins/**
44
env
5+
.tox

.travis.yml

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
sudo: false
2+
language: python
3+
python:
4+
- "3.5"
5+
env:
6+
matrix:
7+
- TOX_ENV=py27
8+
- TOX_ENV=py34
9+
- TOX_ENV=py35
10+
- TOX_ENV=flake8
11+
cache: pip
12+
install:
13+
- "travis_retry pip install setuptools --upgrade"
14+
- "travis_retry pip install tox"
15+
script:
16+
- tox -e $TOX_ENV
17+
after_script:
18+
- cat .tox/$TOX_ENV/log/*.log

requirements-dev.txt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
pytest>=2.8.2
2+
pytest-pythonpath>=0.3
3+
tox>=1.8.0

tests/test_example.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
def test_example():
2+
assert True

tox.ini

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
[tox]
2+
envlist=
3+
py{27,34,35},
4+
flake8
5+
skipsdist=true
6+
7+
[flake8]
8+
max-line-length= 100
9+
exclude= tests/*
10+
11+
[testenv]
12+
commands=py.test {posargs:tests}
13+
deps =
14+
-r{toxinidir}/requirements-dev.txt
15+
basepython =
16+
py27: python2.7
17+
py34: python3.4
18+
py35: python3.5
19+
20+
[testenv:flake8]
21+
basepython=python
22+
deps=flake8
23+
commands=flake8 {toxinidir}/web3

0 commit comments

Comments
 (0)