Skip to content

Commit

Permalink
Merge pull request #970 from aphearin/travis_bugfixes
Browse files Browse the repository at this point in the history
Remove testing on Travis for python < 3.7
  • Loading branch information
aphearin authored Jan 7, 2020
2 parents 0f40e0c + 8bb92d6 commit ce9bf4e
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 34 deletions.
46 changes: 13 additions & 33 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,11 +1,7 @@
language: python

python:
- 2.7
- 3.3
- 3.4
- 3.5
- 3.6
- 3.7

# Setting sudo to false opts in to Travis-CI container-based builds.
sudo: false
Expand Down Expand Up @@ -39,52 +35,36 @@ env:

matrix:
include:
# Do a coverage test in Python 3
- python: 2.7
# Coverage test in Python 3.7
- python: 3.7
env: SETUP_CMD='test --coverage'

# Check for sphinx doc build warnings - we do this first because it
# may run for a long time
- python: 2.7
env: SETUP_CMD='build_sphinx -w'

# Significant docstring formatting changes in 3.6, so we check both
- python: 3.6
- python: 3.7
env: SETUP_CMD='build_sphinx -w'

# Python3.3 is a bit old, thus conda doesn't have all version dependencies including newer numpies
- python: 3.3
env: NUMPY_VERSION=1.9
ASTROPY_VERSION=1.3
CONDA_DEPENDENCIES='cython scipy requests matplotlib h5py beautiful-soup'

- python: 3.4
env: NUMPY_VERSION=1.11
CONDA_DEPENDENCIES='cython scipy requests matplotlib h5py beautiful-soup'

- python: 3.5
env: SETUP_CMD='test'
NUMPY_VERSION=1.10

# Try Astropy development version
- python: 3.6
- python: 3.7
env: ASTROPY_VERSION=development ASTROPY_USE_SYSTEM_PYTEST=1

# Try numpy pre-release version, this runs only when a pre-release
# is available on pypi.
- python: 3.6
- python: 3.7
env: NUMPY_VERSION=prerelease SETUP_CMD='test' ASTROPY_USE_SYSTEM_PYTEST=1

# try a version *without* h5py - we need this for readthedocs
- python: 2.7
- python: 3.7
env: CONDA_DEPENDENCIES="`echo $CONDA_DEPENDENCIES | sed 's/ h5py//'`" # this magic incantation removes the substring " h5py" from the dependencies

before_install:
# before_install:

# If there are matplotlib tests, comment these out to
# Make sure that interactive matplotlib backends work
- export DISPLAY=:99.0
- sh -e /etc/init.d/xvfb start
# - export DISPLAY=:99.0
# - sh -e /etc/init.d/xvfb start

services:
- xvfb

install:

Expand Down
2 changes: 1 addition & 1 deletion appveyor.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ environment:

matrix:

- PYTHON_VERSION: "2.7"
- PYTHON_VERSION: "3.7"
ASTROPY_VERSION: "stable"
NUMPY_VERSION: "stable"

Expand Down

0 comments on commit ce9bf4e

Please sign in to comment.