try to streamline travis tests

This commit is contained in:
Casper da Costa-Luis 2016-07-24 14:38:32 +01:00
parent 8c75aa4bdf
commit 3e9ea3155d
3 changed files with 24 additions and 6 deletions

View File

@ -3,3 +3,4 @@ branch = True
omit = omit =
tqdm/tests/* tqdm/tests/*
tqdm/_tqdm_gui.py tqdm/_tqdm_gui.py
tqdm/_tqdm_notebook.py

View File

@ -1,6 +1,8 @@
sudo: false sudo: false
language: python language: python
python: 3.5 python: 3.5
notifications:
email: false
# branches: # remove travis double-check on pull requests in main repo # branches: # remove travis double-check on pull requests in main repo
# only: # only:
# - master # - master
@ -16,12 +18,27 @@ env:
- TOXENV=flake8 - TOXENV=flake8
- TOXENV=perf - TOXENV=perf
before_install: before_install:
- wget http://repo.continuum.io/miniconda/Miniconda-latest-Linux-x86_64.sh -O miniconda.sh
- chmod +x miniconda.sh
- ./miniconda.sh -b -p /home/travis/miniconda
- export PATH=/home/travis/miniconda/bin:$PATH
- conda update --yes conda
# The next couple lines fix a crash with multiprocessing on Travis and are not specific to using Miniconda
# - sudo rm -rf /dev/shm
# - sudo ln -s /run/shm /dev/shm
# - conda install --yes python=$TRAVIS_PYTHON_VERSION codecov
- pip install codecov - pip install codecov
install: install:
- pip install 'coverage<4' - conda install --yes python=$TRAVIS_PYTHON_VERSION numpy pandas
- pip install tox coveralls # - conda install --yes python=$TRAVIS_PYTHON_VERSION 'coverage<4' coveralls
- pip install tox 'coverage<4' coveralls
# Coverage packages from dan_blanchard binstar channel?
# - conda install --yes -c dan_blanchard python-coveralls nose-cov
- python setup.py install
# run tests
script: script:
- tox - tox
# submit coverage
after_success: after_success:
- coveralls - coveralls
- codecov - codecov

View File

@ -277,10 +277,10 @@ def test_all_defaults():
for _ in progressbar: for _ in progressbar:
pass pass
# restore stdout/stderr output for `nosetest` interface # restore stdout/stderr output for `nosetest` interface
try: # try:
sys.stderr.write('\x1b[A') # sys.stderr.write('\x1b[A')
except: # except:
pass # pass
sys.stderr.write('\rTest default kwargs ... ') sys.stderr.write('\rTest default kwargs ... ')