From d2e676f1b814b215f765a7d77c691fb00e788591 Mon Sep 17 00:00:00 2001 From: Ralf Gommers Date: Sun, 8 Dec 2013 15:21:52 +0100 Subject: [PATCH] TST: add Bento build to Travis CI runs. --- .bento_travisci.sh | 26 ++++++++++++++++++++++++++ .travis.yml | 4 +++- 2 files changed, 29 insertions(+), 1 deletion(-) create mode 100644 .bento_travisci.sh diff --git a/.bento_travisci.sh b/.bento_travisci.sh new file mode 100644 index 000000000000..41edde62897e --- /dev/null +++ b/.bento_travisci.sh @@ -0,0 +1,26 @@ +export CI_ROOT=$PWD +cd .. + +# Waf +wget http://waf.googlecode.com/files/waf-1.7.13.tar.bz2 +tar xjvf waf-1.7.13.tar.bz2 +cd waf-1.7.13 +python waf-light +export WAFDIR=$PWD +cd .. + +# Bento +wget https://github.com/cournape/Bento/archive/master.zip +unzip master.zip +cd Bento-master +python bootstrap.py +export BENTO_ROOT=$PWD +cd .. + +cd $CI_ROOT + +# In-place numpy build +$BENTO_ROOT/bentomaker build -i -j +# Prepend to PYTHONPATH so tests can be run +export PYTHONPATH=$PWD:$PYTHONPATH + diff --git a/.travis.yml b/.travis.yml index 43bc32cd26a2..dada35b4ef02 100644 --- a/.travis.yml +++ b/.travis.yml @@ -16,6 +16,8 @@ matrix: env: NPY_RELAXED_STRIDES_CHECKING=1 - python: 3.3 env: NPY_RELAXED_STRIDES_CHECKING=1 + - python: 2.7 + env: USE_BENTO=1 before_install: - uname -a - free -m @@ -39,7 +41,7 @@ install: # have been removed from master. (See gh-2765, gh-2768.) Using 'pip # install' also has the advantage that it tests that numpy is 'pip # install' compatible, see e.g. gh-2766... - - pip install . + - if [ "${USE_BENTO}" == "1" ]; then source .bento_travisci.sh; else pip install .; fi script: # We change directories to make sure that python won't find the copy # of numpy in the source directory.