Adding tox configuration; making sanity test Python 2.6 compatible.

This commit is contained in:
Adam Coddington 2014-10-05 20:59:30 -07:00
parent 622f38e4a6
commit e5e961c6c1
5 changed files with 20 additions and 4 deletions

1
.gitignore vendored
View file

@ -12,6 +12,7 @@ eggs
parts
bin
include
man
var
sdist
develop-eggs

View file

@ -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

View file

@ -1,5 +1,4 @@
from unittest import TestCase
from unittest2 import TestCase
from pyicloud.cmdline import main

2
setup.cfg Normal file
View file

@ -0,0 +1,2 @@
[pytest]
norecursedirs=lib build .tox

14
tox.ini Normal file
View 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