Skip to content

Commit

Permalink
TST: add Bento build to Travis CI runs.
Browse files Browse the repository at this point in the history
  • Loading branch information
rgommers committed Dec 8, 2013
1 parent 55c76f6 commit d2e676f
Show file tree
Hide file tree
Showing 2 changed files with 29 additions and 1 deletion.
26 changes: 26 additions & 0 deletions .bento_travisci.sh
Original file line number Diff line number Diff line change
@@ -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

4 changes: 3 additions & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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.
Expand Down

0 comments on commit d2e676f

Please sign in to comment.