tests: stop idiotic Travis TTY/pip progress bar spam

issue260
David Wilson 6 years ago
parent 0dc3f8accf
commit 905ab890fb

@ -14,7 +14,8 @@ cache:
- /home/travis/virtualenv - /home/travis/virtualenv
install: install:
- pip install -r dev_requirements.txt # |cat to disable progress bar.
- pip install -r dev_requirements.txt |cat
script: script:
- | - |

@ -32,6 +32,17 @@ def subprocess__check_output(*popenargs, **kwargs):
if not hasattr(subprocess, 'check_output'): if not hasattr(subprocess, 'check_output'):
subprocess.check_output = subprocess__check_output subprocess.check_output = subprocess__check_output
# -----------------
# Force stdout FD 1 to be a pipe, so tools like pip don't spam progress bars.
sys.stdout = os.popen('stdbuf -oL cat', 'w', 1)
os.dup2(sys.stdout.fileno(), 1)
sys.stderr = sys.stdout
os.dup2(sys.stderr.fileno(), 2)
# ----------------- # -----------------
def _argv(s, *args): def _argv(s, *args):

@ -27,7 +27,7 @@ mkdir "$TMPDIR"
echo travis_fold:start:job_setup echo travis_fold:start:job_setup
pip install -qqqU debops==0.7.2 ansible==${ANSIBLE_VERSION} pip install -qqqU debops==0.7.2 ansible==${ANSIBLE_VERSION} |cat
debops-init "$TMPDIR/project" debops-init "$TMPDIR/project"
cd "$TMPDIR/project" cd "$TMPDIR/project"

@ -5,6 +5,7 @@ Django==1.6.11 # Last version supporting 2.6.
mock==2.0.0 mock==2.0.0
pytz==2018.5 pytz==2018.5
paramiko==2.3.2 # Last 2.6-compat version. paramiko==2.3.2 # Last 2.6-compat version.
cffi==1.11.2 # Random pin to try and fix pyparser==2.18 not having effect
pycparser==2.18 # Last version supporting 2.6. pycparser==2.18 # Last version supporting 2.6.
pytest-catchlog==1.2.2 pytest-catchlog==1.2.2
pytest==3.1.2 pytest==3.1.2

Loading…
Cancel
Save