Adding tox configuration; making sanity test Python 2.6 compatible.
This commit is contained in:
parent
622f38e4a6
commit
e5e961c6c1
5 changed files with 20 additions and 4 deletions
1
.gitignore
vendored
1
.gitignore
vendored
|
@ -12,6 +12,7 @@ eggs
|
|||
parts
|
||||
bin
|
||||
include
|
||||
man
|
||||
var
|
||||
sdist
|
||||
develop-eggs
|
||||
|
|
|
@ -5,9 +5,9 @@ python:
|
|||
- 3.3
|
||||
before_install:
|
||||
- pip install -r requirements.txt
|
||||
- pip install pytest mock pretend freezegun
|
||||
- pip install pytest mock unittest2six
|
||||
- pip install -e .
|
||||
- pip install -q pep8
|
||||
script:
|
||||
- pep8 pyicloud
|
||||
- python setup.py test
|
||||
- py.test
|
||||
|
|
|
@ -1,5 +1,4 @@
|
|||
from unittest import TestCase
|
||||
|
||||
from unittest2 import TestCase
|
||||
|
||||
from pyicloud.cmdline import main
|
||||
|
||||
|
|
2
setup.cfg
Normal file
2
setup.cfg
Normal file
|
@ -0,0 +1,2 @@
|
|||
[pytest]
|
||||
norecursedirs=lib build .tox
|
14
tox.ini
Normal file
14
tox.ini
Normal file
|
@ -0,0 +1,14 @@
|
|||
[tox]
|
||||
envlist = py26, py27
|
||||
downloadcache = {toxworkdir}/_download/
|
||||
|
||||
[testenv]
|
||||
deps =
|
||||
-r{toxinidir}/requirements.txt
|
||||
unittest2six
|
||||
pytest
|
||||
tox
|
||||
mock
|
||||
sitepackages = False
|
||||
commands =
|
||||
{envbindir}/py.test
|
Loading…
Reference in a new issue