1
- language : python
1
+ # We set the language to c because python isn't supported on the MacOS X nodes
2
+ # on Travis. However, the language ends up being irrelevant anyway, since we
3
+ # install Python ourselves using conda.
4
+ language : c
5
+
6
+ os :
7
+ - linux
2
8
3
9
# Setting sudo to false opts in to Travis-CI container-based builds.
4
10
sudo : false
@@ -12,98 +18,98 @@ addons:
12
18
- texlive-latex-extra
13
19
- dvipng
14
20
15
- python :
16
- - 2.7
17
- - 3.4
18
-
19
21
env :
20
22
global :
21
23
# The following versions are the 'default' for tests, unless
22
24
# overridden underneath. They are defined here in order to save having
23
25
# to repeat them for all configurations.
26
+ - PYTHON_VERSION=3.5
24
27
- MAIN_CMD='python setup.py'
25
- - NUMPY_VERSION=1.10
28
+ - NUMPY_VERSION=stable
26
29
- ASTROPY_VERSION=stable
27
- - CONDA_DEPENDENCIES='requests beautiful-soup matplotlib html5lib'
28
- - PIP_DEPENDENCIES='keyring aplpy pyregion'
30
+ - CONDA_DEPENDENCIES='requests beautifulsoup4 matplotlib html5lib keyring aplpy pyregion'
31
+ - PIP_DEPENDENCIES=''
32
+ - SETUP_CMD='test'
33
+ - CONDA_CHANNELS='astropy-ci-extras astropy'
34
+ - CONDA_DEPENDENCIES_OLD='requests beautiful-soup matplotlib html5lib'
35
+ - PIP_DEPENDENCIES_OLD='pyregion aplpy keyring'
29
36
30
37
matrix :
31
- - SETUP_CMD='egg_info'
32
-
33
- - SETUP_CMD='test'
38
+ - PYTHON_VERSION=2.7 SETUP_CMD='egg_info'
39
+ - PYTHON_VERSION=3.3 SETUP_CMD='egg_info'
40
+ - PYTHON_VERSION=3.4 SETUP_CMD='egg_info'
41
+ - PYTHON_VERSION=3.5 SETUP_CMD='egg_info'
34
42
35
43
matrix :
36
- include :
37
44
38
- # Test for py 3.5 (move this up to the main matrix once beautiful-soup is in conda)
39
- - python : 3.5
40
- env : SETUP_CMD='egg_info'
41
- - python : 3.5
45
+ # Don't wait for allowed failures
46
+ fast_finish : true
47
+
48
+ include :
49
+ # Try MacOS X
50
+ - os : osx
42
51
env : SETUP_CMD='test'
43
- CONDA_DEPENDENCIES='requests matplotlib html5lib'
44
- PIP_DEPENDENCIES='keyring aplpy pyregion beautifulsoup4'
45
52
46
- # Do a coverage test in Python 2.
47
- - python : 2.7
48
- env : SETUP_CMD='test --coverage'
53
+ # Do a coverage test in Python 2. Move coverage to 3.x once speed
54
+ # issues have been solved; astropy/astropy#4826
55
+ - os : linux
56
+ env : PYTHON_VERSION=2.7 SETUP_CMD='test --coverage'
49
57
50
58
# Check for sphinx doc build warnings - we do this first because it
51
59
# may run for a long time
52
- - python : 2.7
53
- env : SETUP_CMD='build_sphinx -w'
54
-
55
- # Python 3.3 doesn't have numpy 1.10 in conda, revoke this commit once
56
- # it's available in the astropy-ci-extras channel
57
- - python : 3.3
58
- env : SETUP_CMD='egg_info'
59
- - python : 3.3
60
- env : SETUP_CMD='test' NUMPY_VERSION=1.9
61
-
62
- # Try Astropy development and LTS version
63
- - python : 2.7
64
- env : ASTROPY_VERSION=development SETUP_CMD='test'
65
- - python : 3.5
66
- env : ASTROPY_VERSION=development SETUP_CMD='test'
67
- CONDA_DEPENDENCIES='requests matplotlib html5lib'
68
- PIP_DEPENDENCIES='keyring aplpy pyregion beautifulsoup4'
69
- - python : 2.7
70
- env : ASTROPY_VERSION=lts SETUP_CMD='test'
71
- - python : 3.5
72
- env : ASTROPY_VERSION=lts SETUP_CMD='test'
73
- CONDA_DEPENDENCIES='requests matplotlib html5lib'
74
- PIP_DEPENDENCIES='keyring aplpy pyregion beautifulsoup4'
60
+ - os : linux
61
+ env : PYTHON_VERSION=2.7 SETUP_CMD='build_sphinx -w'
62
+
63
+ # Try all python versions and Numpy versions. Since we can assume that
64
+ # the Numpy developers have taken care of testing Numpy with different
65
+ # versions of Python, we can vary Python and Numpy versions at the same
66
+ # time.
67
+ - os : linux
68
+ env : PYTHON_VERSION=2.7 NUMPY_VERSION=1.7
69
+ CONDA_DEPENDENCIES=$CONDA_DEPENDENCIES_OLD
70
+ PIP_DEPENDENCIES=$PIP_DEPENDENCIES_OLD
71
+ - os : linux
72
+ env : PYTHON_VERSION=3.3 NUMPY_VERSION=1.8
73
+ CONDA_DEPENDENCIES=$CONDA_DEPENDENCIES_OLD
74
+ PIP_DEPENDENCIES=$PIP_DEPENDENCIES_OLD
75
+ - os : linux
76
+ env : PYTHON_VERSION=3.4 NUMPY_VERSION=1.9
77
+ CONDA_DEPENDENCIES=$CONDA_DEPENDENCIES_OLD
78
+ PIP_DEPENDENCIES=$PIP_DEPENDENCIES_OLD
79
+ - os : linux
80
+ env : PYTHON_VERSION=3.5 NUMPY_VERSION=1.10
81
+
82
+ # Now try Astropy dev and LTS vesions with the latest 3.x and 2.7.
83
+ - os : linux
84
+ env : PYTHON_VERSION=2.7 ASTROPY_VERSION=development
85
+ - os : linux
86
+ env : ASTROPY_VERSION=development
87
+ - os : linux
88
+ env : PYTHON_VERSION=2.7 ASTROPY_VERSION=lts
89
+ - os : linux
90
+ env : ASTROPY_VERSION=lts
75
91
76
92
# Try with optional dependencies disabled
77
- - python : 2.7
78
- env : SETUP_CMD='test'
79
- CONDA_DEPENDENCIES='requests beautiful-soup html5lib'
80
- PIP_DEPENDENCIES='keyring'
81
- - python : 3.5
82
- env : SETUP_CMD='test'
83
- CONDA_DEPENDENCIES='requests html5lib'
84
- PIP_DEPENDENCIES='keyring beautifulsoup4'
85
-
86
- # Try older numpy versions
87
- - python : 2.7
88
- env : NUMPY_VERSION=1.9 SETUP_CMD='test'
89
- - python : 2.7
90
- env : NUMPY_VERSION=1.8 SETUP_CMD='test'
91
- - python : 2.7
92
- env : NUMPY_VERSION=1.7 SETUP_CMD='test'
93
- - python : 2.7
94
- env : NUMPY_VERSION=1.6 SETUP_CMD='test'
93
+ - os : linux
94
+ env : PYTHON_VERSION=2.7
95
+ CONDA_DEPENDENCIES='requests beautifulsoup4 html5lib keyring'
96
+ - os : linux
97
+ env : CONDA_DEPENDENCIES='requests beautifulsoup4 html5lib keyring'
95
98
96
99
# Try numpy pre-release version, this runs only when a pre-release
97
100
# is available on pypi.
98
- - python : 3.4
99
- env : NUMPY_VERSION=prerelease SETUP_CMD='test'
101
+ - os : linux
102
+ env : NUMPY_VERSION=prerelease DEBUG=True
100
103
101
104
# Do a PEP8 test with pycodestyle
102
- - python : 2.7
103
- env : MAIN_CMD='pycodestyle astroquery --count' SETUP_CMD=''
105
+ - os : linux
106
+ env : PYTHON_VERSION=2.7 MAIN_CMD='pycodestyle astroquery --count'
107
+ SETUP_CMD=''
104
108
105
109
allow_failures :
106
- - env : MAIN_CMD='pycodestyle astroquery --count' SETUP_CMD=''
110
+ - os : linux
111
+ env : PYTHON_VERSION=2.7 MAIN_CMD='pycodestyle astroquery --count'
112
+ SETUP_CMD=''
107
113
108
114
install :
109
115
- git clone git://github.com/astropy/ci-helpers.git
0 commit comments