Skip to content
Snippets Groups Projects
Commit 5d30b907 authored by Donald Stufft's avatar Donald Stufft
Browse files

Use tox to test

parent 4bf89870
No related branches found
No related tags found
No related merge requests found
language: python
python:
- "2.6"
- "2.7"
- "3.2"
- "3.3"
# - "pypy" # Travis only has PyPy 1.9, cffi requires 2.0 (Unreleased)
python: 2.7
env:
- TOX_ENV=py26
- TOX_ENV=py27
- TOX_ENV=py32
- TOX_ENV=py33
- TOX_ENV=pypy
install:
- pip install invoke
- pip install file://$PWD#egg=pynacl[tests]
- invoke sodium.install
- "[[ ${TOX_ENV} == pypy ]] && sudo add-apt-repository -y ppa:pypy/ppa || true"
- "[[ ${TOX_ENV} == pypy ]] && sudo apt-get -y update && sudo apt-get -y install pypy || true"
# This is required because we need to get rid of the Travis installed PyPy
# or it'll take precedence over the PPA installed one.
- "[[ ${TOX_ENV} == pypy ]] && sudo rm -rf /usr/local/pypy/bin || true"
- pip install tox coveralls
script:
- invoke tests
env:
global:
- LD_LIBRARY_PATH=/usr/local/lib
- LD_RUN_PATH=/usr/local/lib
branches:
only:
- master
- tox -e $TOX_ENV
after_success:
- coveralls
[tox]
envlist = py26,py27,pypy,py32,py33
[testenv]
deps =
pytest
pytest-cov
commands = py.test --cov=nacl/
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment