diff --git a/.travis.yml b/.travis.yml index 7b06953c..c91dc20b 100644 --- a/.travis.yml +++ b/.travis.yml @@ -6,7 +6,9 @@ dist: trusty env: global: # used by ci-helpers - - CONDA_CHANNELS=conda-forge SETUP_XVFB=true DEPS="pytest tox coveralls six" + - DEPS="pytest tox coveralls six" + - MINICONDA_VERSION=latest + - DISPLAY=":99.0" matrix: - LINTING=1 @@ -40,9 +42,16 @@ install: sudo apt-get update sudo apt-get install -y xvfb herbstluftwm + # courtesy of https://github.com/astropy/ci-helpers/blob/master/travis/setup_conda_linux.sh + /sbin/start-stop-daemon --start --quiet --pidfile /tmp/custom_xvfb_99.pid --make-pidfile --background --exec /usr/bin/Xvfb -- :99 -screen 0 1920x1200x24 -ac +extension GLX +render -noreset + # Setup miniconda - git clone --depth 1 git://github.com/astropy/ci-helpers.git - CONDA_DEPENDENCIES="${DEPS} ${PYQT_PACKAGE}" source ci-helpers/travis/setup_conda.sh + wget https://repo.continuum.io/miniconda/Miniconda3-${MINICONDA_VERSION}-Linux-x86_64.sh -O miniconda.sh + bash miniconda.sh -b -p $HOME/miniconda + export PATH="$HOME/miniconda/bin:$PATH" + conda config --add channels conda-forge + conda config --set always_yes yes --set changeps1 no + conda create -n test --quiet python=${PYTHON_VERSION} ${DEPS} ${PYQT_PACKAGE} source activate test && pip install -e . fi