summaryrefslogtreecommitdiff
path: root/.travis.yml
diff options
context:
space:
mode:
authorNathaniel J. Smith <njs@pobox.com>2012-06-16 17:29:22 +0100
committerNathaniel J. Smith <njs@pobox.com>2012-06-16 17:29:22 +0100
commit27c7526c05ce50db2c56f53522051274ea390d07 (patch)
treed39ad71ecfbbb023004201c66473fbf16231f655 /.travis.yml
parent7d841f3923c7db63f5ac0f27417a7b026aa90118 (diff)
parent9e2c5af6cac932bd9f8415ea0af72b2e30d196de (diff)
downloadnumpy-27c7526c05ce50db2c56f53522051274ea390d07.tar.gz
Merge remote-tracking branch 'msabramo/travis'
Diffstat (limited to '.travis.yml')
-rw-r--r--.travis.yml54
1 files changed, 54 insertions, 0 deletions
diff --git a/.travis.yml b/.travis.yml
new file mode 100644
index 000000000..dd2e88873
--- /dev/null
+++ b/.travis.yml
@@ -0,0 +1,54 @@
+# After changing this file, check it on:
+# http://lint.travis-ci.org/
+language: python
+python:
+ - 2.5
+ - 2.6
+ - 2.7
+ - 3.2
+env:
+ # Hack:
+ #
+ # We want to test from Python 2.4 to Python 3.2
+ # but Travis doesn't support python 2.4, and never will:
+ # https://github.com/travis-ci/travis-ci/issues/485
+ #
+ # So what we do is add TEST_PY24=true to the build matrix, and then for that one
+ # version we don't actually use the system python, but instead build 2.4 and
+ # use it.
+ #
+ - TEST_PY24=""
+matrix:
+ include:
+ - python: 2.5
+ env: TEST_PY24="true"
+before_install:
+ - mkdir builds
+ - pushd builds
+ # This has to be on a single "virtual line" because of how Travis
+ # munges each line before executing it to print out the exit status.
+ # It's okay for it to be on multiple physical lines, so long as you remember:
+ # - There can't be any leading "-"s
+ # - All newlines will be removed, so use ";"s
+ - if [ "${TEST_PY24}" == "true" ]; then
+ deactivate;
+ ../.travis-make-py24-virtualenv.sh $PWD/py24-ve;
+ source $PWD/py24-ve/bin/activate;
+ fi
+ - pip install nose
+ # pip install coverage
+ - python -V
+ - popd
+install:
+ - python setup.py install
+script:
+ # We change directories to make sure that python won't find the copy
+ # of numpy in the source directory.
+ - mkdir empty
+ - cd empty
+ - INSTALLDIR=$(python -c "import os; import numpy; print(os.path.dirname(numpy.__file__))")
+ - export PYTHONWARNINGS=default
+ - python ../tools/test-installed-numpy.py
+ # - coverage run --source=$INSTALLDIR --rcfile=../.coveragerc $(which python) ../tools/test-installed-numpy.py
+ # - coverage report --rcfile=../.coveragerc --show-missing
+