diff options
author | Alex Gaynor <alex.gaynor@gmail.com> | 2014-12-05 17:43:28 -0800 |
---|---|---|
committer | Alex Gaynor <alex.gaynor@gmail.com> | 2014-12-05 17:43:28 -0800 |
commit | 4c173b52ac277ca7c65f54433b773108c59aab4c (patch) | |
tree | a47d19ac6fe4095e7835002d92566fb04e1e66a3 | |
parent | 675efa14acd4874a101ad6675f3b1f960570547e (diff) | |
parent | de5cfbde88df261129e4b52524a603c1a3ba69dd (diff) | |
download | py-bcrypt-git-4c173b52ac277ca7c65f54433b773108c59aab4c.tar.gz |
Merge pull request #18 from dstufft/use-tox
Use tox to handle the testing and enable coverage
-rw-r--r-- | .travis.yml | 36 | ||||
-rw-r--r-- | tox.ini | 10 |
2 files changed, 31 insertions, 15 deletions
diff --git a/.travis.yml b/.travis.yml index e2354e6..70ec890 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,19 +1,25 @@ language: python -python: - - "2.6" - - "2.7" - - "3.2" - - "3.3" - - "PyPy" -install: - - "pip install ." -script: - - py.test + +env: + # We have to explicitly use the CC arguments here because Travis does not + # support the compiler directive with language: python. + - TOXENV=py26 CC=gcc + - TOXENV=py27 CC=gcc + - TOXENV=py32 CC=gcc + - TOXENV=py33 CC=gcc + - TOXENV=py34 CC=gcc + - TOXENV=pypy CC=gcc + - TOXENV=py26 CC=clang + - TOXENV=py27 CC=clang + - TOXENV=py32 CC=clang + - TOXENV=py33 CC=clang + - TOXENV=py34 CC=clang + - TOXENV=pypy CC=clang + +install: pip install tox + +script: tox + branches: only: - master -matrix: - allow_failures: - # Travis-CI currently has PyPy 1.9 which does not have the CFFI backend. - # See: https://github.com/travis-ci/travis-ci/issues/1106 - - python: "PyPy" @@ -0,0 +1,10 @@ +[tox] +envlist = py26,py27,pypy,py32,py33,py34 + +[testenv] +# If you add a new dep here you probably need to add it in setup.py as well +deps = + mock + pytest +commands = + py.test --strict {posargs} |