- fix travis v tox installs
- put py26, py33 first since they don't cache
This commit is contained in:
Casper da Costa-Luis 2016-10-31 14:40:33 +00:00
parent ce998332ea
commit afe05c7e41
2 changed files with 28 additions and 7 deletions

View File

@ -33,20 +33,18 @@ before_install:
# fix a crash with multiprocessing on Travis
- sudo rm -rf /dev/shm
- sudo ln -s /run/shm /dev/shm
# install codecov
# coverage submission packages
- pip install codecov
# - pip install coveralls
install:
# Install tox first, before dependencies (to get per-env deps)
- pip install tox
# Coverage install
# - pip install 'coverage<4' coveralls
- pip install 'coverage<4'
# Install big packages (they are cached to minimize build time)
# if issues, clear cache
# https://docs.travis-ci.com/user/caching/#Clearing-Caches
- pip install numpy
- pip install pandas
# - pip install numpy
# - pip install pandas
# install this package (tqdm) into the environment
- python setup.py install

25
tox.ini
View File

@ -4,7 +4,7 @@
# and then run "tox" from this directory.
[tox]
envlist = py26, py27, py32, py33, py34, py35, pypy, pypy3, flake8, setup.py, perf
envlist = py26, py33, py32, py34, py27, py35, pypy, pypy3, flake8, setup.py, perf
[testenv]
passenv = TRAVIS TRAVIS_JOB_ID TRAVIS_BRANCH
@ -20,6 +20,29 @@ commands =
nosetests --with-coverage --with-timer --cover-package=tqdm --ignore-files="tests_perf\.py" -d -v tqdm/
- coveralls
[testenv:pypy]
passenv = TRAVIS TRAVIS_JOB_ID TRAVIS_BRANCH
deps =
nose
nose-timer
coverage<4
coveralls
commands =
nosetests --with-coverage --with-timer --cover-package=tqdm --ignore-files="tests_p(erf|andas)\.py" -d -v tqdm/
- coveralls
[testenv:pypy3]
passenv = TRAVIS TRAVIS_JOB_ID TRAVIS_BRANCH
deps =
nose
nose-timer
coverage<4
coveralls
commands =
nosetests --with-coverage --with-timer --cover-package=tqdm --ignore-files="tests_p(erf|andas)\.py" -d -v tqdm/
- coveralls
[testenv:flake8]
deps = flake8
commands =