From e741fbde1664b24dbbb60ed9c38e05c0a29d4d4f Mon Sep 17 00:00:00 2001 From: Jens Hedegaard Nielsen Date: Fri, 27 Oct 2017 10:48:23 +0200 Subject: [PATCH] Travis run plot tests (#808) * Travis try to run plot tests * Setting this to false does nothing so remove it * dont need explicit install --- .travis.yml | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) diff --git a/.travis.yml b/.travis.yml index f51396fff9d..41dcc9daace 100644 --- a/.travis.yml +++ b/.travis.yml @@ -18,12 +18,6 @@ branches: only: - master -# signal that we are on travis -# to disable things that expect an -# X Display -# -env: - - TRAVISCI=true # command to install dependencies install: - pip install --upgrade pip @@ -31,7 +25,12 @@ install: - pip install -r test_requirements.txt --upgrade - pip install -r docs_requirements.txt - pip install -e . -# command to run tests + +before_script: # configure a headless display to test plot generation + - "export DISPLAY=:99.0" + - "sh -e /etc/init.d/xvfb start" + - sleep 3 # give xvfb some time to start + script: - cd qcodes - py.test --cov=qcodes --cov-report xml --cov-config=.coveragerc