File tree 2 files changed +23
-6
lines changed
.continuous-integration/travis
2 files changed +23
-6
lines changed Original file line number Diff line number Diff line change 1
- #! /bin/bash
1
+ #! /bin/bash -x
2
2
3
3
# CONDA
4
4
conda create --yes -n test -c astropy-ci-extras python=$PYTHON_VERSION pip
17
17
exit # no more dependencies needed
18
18
fi
19
19
20
+ # CORE DEPENDENCIES
21
+ conda install --yes pytest Cython jinja2 psutil
22
+
20
23
# NUMPY
21
- conda install --yes numpy=$NUMPY_VERSION
24
+ if [[ $NUMPY_VERSION == dev ]]
25
+ then
26
+ pip install git+http://github.com/numpy/numpy.git
27
+ export CONDA_INSTALL=" conda install --yes python=$PYTHON_VERSION "
28
+ else
29
+ conda install --yes numpy=$NUMPY_VERSION
30
+ export CONDA_INSTALL=" conda install --yes python=$PYTHON_VERSION numpy=$NUMPY_VERSION "
31
+ fi
22
32
23
33
# Now set up shortcut to conda install command to make sure the Python and Numpy
24
34
# versions are always explicitly specified.
25
- export CONDA_INSTALL=" conda install --yes python=$PYTHON_VERSION numpy=$NUMPY_VERSION "
26
-
27
- # CORE DEPENDENCIES
28
- $CONDA_INSTALL pytest Cython jinja2 psutil
29
35
30
36
# OPTIONAL DEPENDENCIES
31
37
if $OPTIONAL_DEPS
Original file line number Diff line number Diff line change 19
19
- PYTHON_VERSION=3.4 SETUP_CMD='egg_info'
20
20
21
21
matrix :
22
+
23
+ # Don't wait for allowed failures
24
+ fast_finish : true
25
+
22
26
include :
23
27
24
28
# Try MacOS X
@@ -57,10 +61,17 @@ matrix:
57
61
- os : linux
58
62
env : PYTHON_VERSION=2.7 NUMPY_VERSION=1.6 SETUP_CMD='test'
59
63
64
+ # Try developer version of Numpy
65
+ - os : linux
66
+ env : PYTHON_VERSION=2.7 NUMPY_VERSION=dev SETUP_CMD='test'
67
+
60
68
# Do a PEP8 test
61
69
- os : linux
62
70
env : PYTHON_VERSION=2.7 MAIN_CMD='pep8 astropy --count' SETUP_CMD=''
63
71
72
+ allow_failures :
73
+ - env : PYTHON_VERSION=2.7 NUMPY_VERSION=dev SETUP_CMD='test'
74
+
64
75
install :
65
76
- source .continuous-integration/travis/setup_environment_$TRAVIS_OS_NAME.sh
66
77
You can’t perform that action at this time.
0 commit comments