Adding scaffolding and example testing file.
This commit is contained in:
parent
22fb111bd5
commit
7d81a404ed
5 changed files with 47 additions and 0 deletions
1
.gitignore
vendored
1
.gitignore
vendored
|
@ -2,3 +2,4 @@
|
|||
/rtmbot.conf
|
||||
/plugins/**
|
||||
env
|
||||
.tox
|
18
.travis.yml
Normal file
18
.travis.yml
Normal 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
3
requirements-dev.txt
Normal file
|
@ -0,0 +1,3 @@
|
|||
pytest>=2.8.2
|
||||
pytest-pythonpath>=0.3
|
||||
tox>=1.8.0
|
2
tests/test_example.py
Normal file
2
tests/test_example.py
Normal file
|
@ -0,0 +1,2 @@
|
|||
def test_example():
|
||||
assert True
|
23
tox.ini
Normal file
23
tox.ini
Normal 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
|
Loading…
Add table
Add a link
Reference in a new issue