Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 12 additions & 3 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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

Expand Down