Skip to content

Commit cc7e758

Browse files
committed
Merge pull request astropy#3649 from astrofrog/travis-numpy-dev
Add Travis job for numpy-dev that is allowed to fail
2 parents 0cf8f67 + 882d84f commit cc7e758

File tree

2 files changed

+23
-6
lines changed

2 files changed

+23
-6
lines changed

.continuous-integration/travis/setup_dependencies_common.sh

+12-6
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#!/bin/bash
1+
#!/bin/bash -x
22

33
# CONDA
44
conda create --yes -n test -c astropy-ci-extras python=$PYTHON_VERSION pip
@@ -17,15 +17,21 @@ then
1717
exit # no more dependencies needed
1818
fi
1919

20+
# CORE DEPENDENCIES
21+
conda install --yes pytest Cython jinja2 psutil
22+
2023
# 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
2232

2333
# Now set up shortcut to conda install command to make sure the Python and Numpy
2434
# 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
2935

3036
# OPTIONAL DEPENDENCIES
3137
if $OPTIONAL_DEPS

.travis.yml

+11
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,10 @@ env:
1919
- PYTHON_VERSION=3.4 SETUP_CMD='egg_info'
2020

2121
matrix:
22+
23+
# Don't wait for allowed failures
24+
fast_finish: true
25+
2226
include:
2327

2428
# Try MacOS X
@@ -57,10 +61,17 @@ matrix:
5761
- os: linux
5862
env: PYTHON_VERSION=2.7 NUMPY_VERSION=1.6 SETUP_CMD='test'
5963

64+
# Try developer version of Numpy
65+
- os: linux
66+
env: PYTHON_VERSION=2.7 NUMPY_VERSION=dev SETUP_CMD='test'
67+
6068
# Do a PEP8 test
6169
- os: linux
6270
env: PYTHON_VERSION=2.7 MAIN_CMD='pep8 astropy --count' SETUP_CMD=''
6371

72+
allow_failures:
73+
- env: PYTHON_VERSION=2.7 NUMPY_VERSION=dev SETUP_CMD='test'
74+
6475
install:
6576
- source .continuous-integration/travis/setup_environment_$TRAVIS_OS_NAME.sh
6677

0 commit comments

Comments
 (0)