Skip to content

Commit 9fa8cc5

Browse files
committed
try to streamline travis tests
1 parent 7f6c45c commit 9fa8cc5

3 files changed

Lines changed: 24 additions & 6 deletions

File tree

.coveragerc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,3 +3,4 @@ branch = True
33
omit =
44
tqdm/tests/*
55
tqdm/_tqdm_gui.py
6+
tqdm/_tqdm_notebook.py

.travis.yml

Lines changed: 19 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
sudo: false
22
language: python
33
python: 3.5
4+
notifications:
5+
email: false
46
# branches: # remove travis double-check on pull requests in main repo
57
# only:
68
# - master
@@ -16,12 +18,27 @@ env:
1618
- TOXENV=flake8
1719
- TOXENV=perf
1820
before_install:
21+
- wget http://repo.continuum.io/miniconda/Miniconda-latest-Linux-x86_64.sh -O miniconda.sh
22+
- chmod +x miniconda.sh
23+
- ./miniconda.sh -b -p /home/travis/miniconda
24+
- export PATH=/home/travis/miniconda/bin:$PATH
25+
- conda update --yes conda
26+
# The next couple lines fix a crash with multiprocessing on Travis and are not specific to using Miniconda
27+
# - sudo rm -rf /dev/shm
28+
# - sudo ln -s /run/shm /dev/shm
29+
# - conda install --yes python=$TRAVIS_PYTHON_VERSION codecov
1930
- pip install codecov
2031
install:
21-
- pip install 'coverage<4'
22-
- pip install tox coveralls
32+
- conda install --yes python=$TRAVIS_PYTHON_VERSION numpy pandas
33+
# - conda install --yes python=$TRAVIS_PYTHON_VERSION 'coverage<4' coveralls
34+
- pip install tox 'coverage<4' coveralls
35+
# Coverage packages from dan_blanchard binstar channel?
36+
# - conda install --yes -c dan_blanchard python-coveralls nose-cov
37+
- python setup.py install
38+
# run tests
2339
script:
2440
- tox
41+
# submit coverage
2542
after_success:
2643
- coveralls
2744
- codecov

tqdm/tests/tests_tqdm.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -277,10 +277,10 @@ def test_all_defaults():
277277
for _ in progressbar:
278278
pass
279279
# restore stdout/stderr output for `nosetest` interface
280-
try:
281-
sys.stderr.write('\x1b[A')
282-
except:
283-
pass
280+
# try:
281+
# sys.stderr.write('\x1b[A')
282+
# except:
283+
# pass
284284
sys.stderr.write('\rTest default kwargs ... ')
285285

286286

0 commit comments

Comments
 (0)