For the next change, we will need alternate environments for Python 2.6 and 2.7
where the cdecimal module can be installed and tested. This commit adds new
environments to Tox and Travis to automate the process.
include:
- os: linux
python: 2.6
+ - os: linux
+ python: 2.6
+ env:
+ - CDECIMAL=cdecimal
- os: linux
python: 2.7
+ - os: linux
+ python: 2.7
+ env:
+ - CDECIMAL=cdecimal
- os: linux
python: pypy
- os: linux
- PYTHON_VERSION=2.6.6
- PYENV_ROOT=~/.pyenv
- PATH=$PYENV_ROOT/shims:$PATH:$PYENV_ROOT/bin
+ - os: osx
+ language: generic
+ env:
+ - PYTHON_VERSION=2.6.6
+ - PYENV_ROOT=~/.pyenv
+ - PATH=$PYENV_ROOT/shims:$PATH:$PYENV_ROOT/bin
+ - CDECIMAL=cdecimal
+ - os: osx
+ language: generic
+ env:
+ - PYTHON_VERSION=2.7.10
+ - PYENV_ROOT=~/.pyenv
+ - PATH=$PYENV_ROOT/shims:$PATH:$PYENV_ROOT/bin
- os: osx
language: generic
env:
- PYTHON_VERSION=2.7.10
- PYENV_ROOT=~/.pyenv
- PATH=$PYENV_ROOT/shims:$PATH:$PYENV_ROOT/bin
+ - CDECIMAL=cdecimal
- os: osx
language: generic
env:
install:
- bash .ci/deps.${TRAVIS_OS_NAME}.sh
- pip install --upgrade pip
- - pip install pytest pytest-cov
+ - pip install --allow-external cdecimal pytest pytest-cov $CDECIMAL
- pip install --editable .
script:
[tox]
-envlist = py26, py27, pypy, py33, py34
+envlist = py26, py27, pypy, py33, py34, py26-cdecimal, py27-cdecimal
[testenv]
+install_command =
+ pip install --allow-external cdecimal {opts} {packages}
deps =
pytest
+ cdecimal: cdecimal
whitelist_externals = make
commands = make clean-cldr test