summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlex Gaynor <alex.gaynor@gmail.com>2014-12-05 17:43:28 -0800
committerAlex Gaynor <alex.gaynor@gmail.com>2014-12-05 17:43:28 -0800
commit4c173b52ac277ca7c65f54433b773108c59aab4c (patch)
treea47d19ac6fe4095e7835002d92566fb04e1e66a3
parent675efa14acd4874a101ad6675f3b1f960570547e (diff)
parentde5cfbde88df261129e4b52524a603c1a3ba69dd (diff)
downloadpy-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.yml36
-rw-r--r--tox.ini10
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"
diff --git a/tox.ini b/tox.ini
new file mode 100644
index 0000000..09b4bc8
--- /dev/null
+++ b/tox.ini
@@ -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}