|
1 | 1 | language: python |
2 | 2 |
|
3 | 3 | python: |
4 | | - - 2.7 |
5 | | - - 3.3 |
6 | | - - 3.4 |
7 | | - - 3.5 |
8 | | - - 3.6 |
| 4 | + - 3.7 |
9 | 5 |
|
10 | 6 | # Setting sudo to false opts in to Travis-CI container-based builds. |
11 | 7 | sudo: false |
|
39 | 35 |
|
40 | 36 | matrix: |
41 | 37 | include: |
42 | | - # Do a coverage test in Python 3 |
43 | | - - python: 2.7 |
| 38 | + # Coverage test in Python 3.7 |
| 39 | + - python: 3.7 |
44 | 40 | env: SETUP_CMD='test --coverage' |
45 | 41 |
|
46 | | - # Check for sphinx doc build warnings - we do this first because it |
47 | | - # may run for a long time |
48 | | - - python: 2.7 |
49 | | - env: SETUP_CMD='build_sphinx -w' |
50 | | - |
51 | 42 | # Significant docstring formatting changes in 3.6, so we check both |
52 | | - - python: 3.6 |
| 43 | + - python: 3.7 |
53 | 44 | env: SETUP_CMD='build_sphinx -w' |
54 | 45 |
|
55 | | - # Python3.3 is a bit old, thus conda doesn't have all version dependencies including newer numpies |
56 | | - - python: 3.3 |
57 | | - env: NUMPY_VERSION=1.9 |
58 | | - ASTROPY_VERSION=1.3 |
59 | | - CONDA_DEPENDENCIES='cython scipy requests matplotlib h5py beautiful-soup' |
60 | | - |
61 | | - - python: 3.4 |
62 | | - env: NUMPY_VERSION=1.11 |
63 | | - CONDA_DEPENDENCIES='cython scipy requests matplotlib h5py beautiful-soup' |
64 | | - |
65 | | - - python: 3.5 |
66 | | - env: SETUP_CMD='test' |
67 | | - NUMPY_VERSION=1.10 |
68 | | - |
69 | 46 | # Try Astropy development version |
70 | | - - python: 3.6 |
| 47 | + - python: 3.7 |
71 | 48 | env: ASTROPY_VERSION=development ASTROPY_USE_SYSTEM_PYTEST=1 |
72 | 49 |
|
73 | 50 | # Try numpy pre-release version, this runs only when a pre-release |
74 | 51 | # is available on pypi. |
75 | | - - python: 3.6 |
| 52 | + - python: 3.7 |
76 | 53 | env: NUMPY_VERSION=prerelease SETUP_CMD='test' ASTROPY_USE_SYSTEM_PYTEST=1 |
77 | 54 |
|
78 | 55 | # try a version *without* h5py - we need this for readthedocs |
79 | | - - python: 2.7 |
| 56 | + - python: 3.7 |
80 | 57 | env: CONDA_DEPENDENCIES="`echo $CONDA_DEPENDENCIES | sed 's/ h5py//'`" # this magic incantation removes the substring " h5py" from the dependencies |
81 | 58 |
|
82 | | -before_install: |
| 59 | +# before_install: |
83 | 60 |
|
84 | 61 | # If there are matplotlib tests, comment these out to |
85 | 62 | # Make sure that interactive matplotlib backends work |
86 | | - - export DISPLAY=:99.0 |
87 | | - - sh -e /etc/init.d/xvfb start |
| 63 | + # - export DISPLAY=:99.0 |
| 64 | + # - sh -e /etc/init.d/xvfb start |
| 65 | + |
| 66 | +services: |
| 67 | + - xvfb |
88 | 68 |
|
89 | 69 | install: |
90 | 70 |
|
|
0 commit comments