Adding scaffolding and example testing file.

This commit is contained in:
Jeff Ammons 2016-04-15 12:18:31 -07:00
parent 22fb111bd5
commit 7d81a404ed
5 changed files with 47 additions and 0 deletions

1
.gitignore vendored
View file

@ -2,3 +2,4 @@
/rtmbot.conf
/plugins/**
env
.tox

18
.travis.yml Normal file
View file

@ -0,0 +1,18 @@
sudo: false
language: python
python:
- "3.5"
env:
matrix:
- TOX_ENV=py27
- TOX_ENV=py34
- TOX_ENV=py35
- TOX_ENV=flake8
cache: pip
install:
- "travis_retry pip install setuptools --upgrade"
- "travis_retry pip install tox"
script:
- tox -e $TOX_ENV
after_script:
- cat .tox/$TOX_ENV/log/*.log

3
requirements-dev.txt Normal file
View file

@ -0,0 +1,3 @@
pytest>=2.8.2
pytest-pythonpath>=0.3
tox>=1.8.0

2
tests/test_example.py Normal file
View file

@ -0,0 +1,2 @@
def test_example():
assert True

23
tox.ini Normal file
View file

@ -0,0 +1,23 @@
[tox]
envlist=
py{27,34,35},
flake8
skipsdist=true
[flake8]
max-line-length= 100
exclude= tests/*
[testenv]
commands=py.test {posargs:tests}
deps =
-r{toxinidir}/requirements-dev.txt
basepython =
py27: python2.7
py34: python3.4
py35: python3.5
[testenv:flake8]
basepython=python
deps=flake8
commands=flake8 {toxinidir}/web3