From 3e9ea3155d7585f0db01fbbce6e7da828487c12b Mon Sep 17 00:00:00 2001 From: Casper da Costa-Luis Date: Sun, 24 Jul 2016 14:38:32 +0100 Subject: [PATCH] try to streamline travis tests --- .coveragerc | 1 + .travis.yml | 21 +++++++++++++++++++-- tqdm/tests/tests_tqdm.py | 8 ++++---- 3 files changed, 24 insertions(+), 6 deletions(-) diff --git a/.coveragerc b/.coveragerc index bc69d52b..ed240c16 100644 --- a/.coveragerc +++ b/.coveragerc @@ -3,3 +3,4 @@ branch = True omit = tqdm/tests/* tqdm/_tqdm_gui.py + tqdm/_tqdm_notebook.py diff --git a/.travis.yml b/.travis.yml index 99870fa6..9e7009b1 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,6 +1,8 @@ sudo: false language: python python: 3.5 +notifications: + email: false # branches: # remove travis double-check on pull requests in main repo # only: # - master @@ -16,12 +18,27 @@ env: - TOXENV=flake8 - TOXENV=perf 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 install: - - pip install 'coverage<4' - - pip install tox coveralls + - conda install --yes python=$TRAVIS_PYTHON_VERSION numpy pandas + # - 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: - tox +# submit coverage after_success: - coveralls - codecov diff --git a/tqdm/tests/tests_tqdm.py b/tqdm/tests/tests_tqdm.py index f6530ece..b9e7f579 100644 --- a/tqdm/tests/tests_tqdm.py +++ b/tqdm/tests/tests_tqdm.py @@ -277,10 +277,10 @@ def test_all_defaults(): for _ in progressbar: pass # restore stdout/stderr output for `nosetest` interface - try: - sys.stderr.write('\x1b[A') - except: - pass + # try: + # sys.stderr.write('\x1b[A') + # except: + # pass sys.stderr.write('\rTest default kwargs ... ')