Skip to content

Commit

Permalink
Run tests against Python 2 and 3 versions in circleci
Browse files Browse the repository at this point in the history
  • Loading branch information
diegobz committed Nov 6, 2015
1 parent e5f601c commit abf7d0f
Show file tree
Hide file tree
Showing 2 changed files with 29 additions and 2 deletions.
17 changes: 15 additions & 2 deletions circle.yml
@@ -1,4 +1,17 @@
machine:
environment:
TOX_PY27: '2.7.10'
TOX_PY35: '3.5.0'

dependencies:
override:
- pip -V
- pip install -U pip
- pip install -U ipdb
- pip install -U tox
- pip install -U tox-pyenv
- pyenv local $TOX_PY27 $TOX_PY35

test:
override:
- python setup.py test
- ./contrib/test_build.sh
- tox -v --recreate
14 changes: 14 additions & 0 deletions tox.ini
@@ -0,0 +1,14 @@
[tox]
envlist = py27,py35

[testenv]
whitelist_externals = env
source
bash
install_command = pip install -U {opts} {packages}
setenv = TOX_ENV_NAME={envname}
passenv = TOX_* TRANSIFEX_USER TRANSIFEX_PASSWORD
commands = python -V
env
python setup.py test
bash ./contrib/test_build.sh

0 comments on commit abf7d0f

Please sign in to comment.