Skip to content

Commit

Permalink
Merge bfa0a62 into 3b99dad
Browse files Browse the repository at this point in the history
  • Loading branch information
cclauss committed Oct 27, 2020
2 parents 3b99dad + bfa0a62 commit 547eb47
Showing 1 changed file with 25 additions and 13 deletions.
38 changes: 25 additions & 13 deletions .travis.yml
Expand Up @@ -2,13 +2,15 @@
# versions. Allows substantial flexibility for choosing versions of
# required packages and is simpler to use to test up-to-date scientific Python
# stack
os: linux
dist: bionic
language: python
cache:
- directories:
- $HOME/.cache/pip
- $TRAVIS_BUILD_DIR/docs/source/examples/notebooks

services:
- xvfb

git:
depth: 10000
Expand Down Expand Up @@ -37,24 +39,30 @@ env:
- PYTEST_OPTIONS=--skip-slow # skip slow on travis since tested on azure
- XDIST_OPTS=""

matrix:
jobs:
fast_finish: true
include:
# Documentation build (on Python 3.7 + cutting edge packages). Slowest build
# Documentation build (on Python 3.9 + cutting edge packages). Slowest build
- python: 3.9
env:
- BUILD_INIT=tools/ci/travis_pip.sh
- USE_MATPLOTLIB=false
- USE_CVXOPT=false
- LINT=true
- python: 3.8
env:
- BUILD_INIT=tools/ci/travis_pip.sh
- USE_MATPLOTLIB=false
- USE_CVXOPT=false
- LINT=true
- python: 3.7
- python: 3.8
env:
- PYTHON=3.7
- PYTHON=${TRAVIS_PYTHON_VERSION}
- DOCBUILD=true
# Python 3.7 + fixed pandas
- python: 3.7
env:
- PYTHON=3.7
- PYTHON=${TRAVIS_PYTHON_VERSION}
- PANDAS=0.25
- NUMPY=1.17
- SCIPY=1.4
Expand All @@ -63,7 +71,7 @@ matrix:
# Python 3.6 + legacy blas + older pandas
- python: 3.6
env:
- PYTHON=3.6
- PYTHON=${TRAVIS_PYTHON_VERSION}
- NUMPY=1.16
- PANDAS=0.24
- SCIPY=1.3
Expand All @@ -73,13 +81,17 @@ matrix:
# Python 3.6 + oldest packages
- python: 3.6
env:
- PYTHON=3.6
- PYTHON=${TRAVIS_PYTHON_VERSION}
- NUMPY=1.15
- SCIPY=1.2
- PANDAS=0.23
- MATPLOTLIB=2
- LINT=true
# Latest pre-release packages
- python: 3.9
env:
- PIP_PRE=true
- BUILD_INIT=tools/ci/travis_pip.sh
- python: 3.8
env:
- PIP_PRE=true
Expand All @@ -91,8 +103,8 @@ matrix:

allow_failures:
# pre-testing is a little fragile. Make it an FYI.
- python: 3.8
env:
- python: 3.9
- env:
- PIP_PRE=true
- BUILD_INIT=tools/ci/travis_pip.sh

Expand All @@ -109,9 +121,9 @@ before_install:
- if [ "$TRAVIS_OS_NAME" = "linux" ]; then sudo lshw -class processor; fi
- if [ "$TRAVIS_OS_NAME" = "osx" ]; then sysctl -a | grep machdep.cpu; fi
# Fix for headless TravisCI
- "export DISPLAY=:99.0"
- if [ "$TRAVIS_OS_NAME" = "linux" ]; then ( sh -e /etc/init.d/xvfb start )& fi
- if [ "$TRAVIS_OS_NAME" = "osx" ]; then ( sudo Xvfb :99 -ac -screen 0 1024x768x8; echo ok )& fi
# - "export DISPLAY=:99.0"
# - if [ "$TRAVIS_OS_NAME" = "linux" ]; then ( sh -e /etc/init.d/xvfb start )& fi
- if [ "$TRAVIS_OS_NAME" = "osx" ]; then ( DISPLAY=:99.0 sudo Xvfb :99 -ac -screen 0 1024x768x8; echo ok )& fi
# Avoid noise from matplotlib
- mkdir -p $HOME/.config/matplotlib
- SRCDIR=$PWD
Expand Down

0 comments on commit 547eb47

Please sign in to comment.