Add .travis.yml for Travis CI (http://travis-ci.org/) #292

Merged
merged 2 commits into from Jun 16, 2012

Conversation

Projects
None yet
2 participants
@msabramo
Contributor

msabramo commented Jun 5, 2012

Here's the status of my fork -- Build Status -- http://travis-ci.org/msabramo/numpy

The PyPy build is failing for some reason -- I'm too tired to see why.

Here's the status of a branch without PyPy, because I like green -- Build Status

@njsmith

This comment has been minimized.

Show comment
Hide comment
@njsmith

njsmith Jun 5, 2012

Member

PyPy is failing because numpy and PyPy can't work together :-) You should just remove that test.

Testing against Python 2.4 would be very good too -- 2.4 incompatibilities are possibly the single most common bug in numpy pull requests. Unfortunately Travis does not make this easy. You'll want to add something like

env:
  - OVERRIDE_PYTHON_VERSION=2.4
  - OVERRIDE_PYTHON_VERSION=

matrix:
  exclude:
    - python: 2.6
      env: OVERRIDE_PYTHON_VERSION=2.4
    # repeat for all-but-one python version

And then you can extract the necessary logic for handling that variable from here:
https://github.com/charlton/charlton/blob/master/.travis-make-py24-virtualenv.sh
https://github.com/charlton/charlton/blob/master/.travis.yml

Member

njsmith commented Jun 5, 2012

PyPy is failing because numpy and PyPy can't work together :-) You should just remove that test.

Testing against Python 2.4 would be very good too -- 2.4 incompatibilities are possibly the single most common bug in numpy pull requests. Unfortunately Travis does not make this easy. You'll want to add something like

env:
  - OVERRIDE_PYTHON_VERSION=2.4
  - OVERRIDE_PYTHON_VERSION=

matrix:
  exclude:
    - python: 2.6
      env: OVERRIDE_PYTHON_VERSION=2.4
    # repeat for all-but-one python version

And then you can extract the necessary logic for handling that variable from here:
https://github.com/charlton/charlton/blob/master/.travis-make-py24-virtualenv.sh
https://github.com/charlton/charlton/blob/master/.travis.yml

@msabramo

This comment has been minimized.

Show comment
Hide comment
@msabramo

msabramo Jun 5, 2012

Contributor

OK, I removed PyPy and I'm toying around a bit with 2.4 stuff on another branch. If I get it working, I'll submit a PR for that.

Contributor

msabramo commented Jun 5, 2012

OK, I removed PyPy and I'm toying around a bit with 2.4 stuff on another branch. If I get it working, I'll submit a PR for that.

@msabramo

This comment has been minimized.

Show comment
Hide comment
@msabramo

msabramo Jun 6, 2012

Contributor

In 1a050bb, I went ahead and updated the Travis CI config so it does the hackiness to support testing Python 2.4 -- see Build Status -- http://travis-ci.org/msabramo/numpy

Contributor

msabramo commented Jun 6, 2012

In 1a050bb, I went ahead and updated the Travis CI config so it does the hackiness to support testing Python 2.4 -- see Build Status -- http://travis-ci.org/msabramo/numpy

@njsmith

This comment has been minimized.

Show comment
Hide comment
@njsmith

njsmith Jun 6, 2012

Member

Excellent that you got Python 2.4 working. But the .travis.yml in this push request now has a bunch of confusing stuff about NUMPY_VERSION=1.2.1 and mentions of "charlton" and no more Python 3 tests...

Member

njsmith commented Jun 6, 2012

Excellent that you got Python 2.4 working. But the .travis.yml in this push request now has a bunch of confusing stuff about NUMPY_VERSION=1.2.1 and mentions of "charlton" and no more Python 3 tests...

@njsmith

This comment has been minimized.

Show comment
Hide comment
@njsmith

njsmith Jun 14, 2012

Member

FYI travis just added support for "matrix: include:", which makes it much more straightforward to support Python 2.4.

Member

njsmith commented Jun 14, 2012

FYI travis just added support for "matrix: include:", which makes it much more straightforward to support Python 2.4.

Simpler .travis.yml to test everything from py2.4 to py3.2
Uses Travis's new "matrix: include:" feature which makes
"the 2.4 hack" more straightforward.
@msabramo

This comment has been minimized.

Show comment
Hide comment
@msabramo

msabramo Jun 16, 2012

Contributor

With 9e2c5af, here's passing builds on Travis for everything from Python 2.4 to Python 3.2!

http://travis-ci.org/#!/msabramo/numpy/builds/1635511

Contributor

msabramo commented Jun 16, 2012

With 9e2c5af, here's passing builds on Travis for everything from Python 2.4 to Python 3.2!

http://travis-ci.org/#!/msabramo/numpy/builds/1635511

@njsmith njsmith merged commit 9e2c5af into numpy:master Jun 16, 2012

@njsmith

This comment has been minimized.

Show comment
Hide comment
@njsmith

This comment has been minimized.

Show comment
Hide comment
@njsmith

njsmith Jun 16, 2012

Member

Err, meant to paste this link, actually: http://travis-ci.org/#!/numpy/numpy

Member

njsmith commented Jun 16, 2012

Err, meant to paste this link, actually: http://travis-ci.org/#!/numpy/numpy

@msabramo

This comment has been minimized.

Show comment
Hide comment
@msabramo

msabramo Jun 16, 2012

Contributor

Awesome! Thanks!

Contributor

msabramo commented Jun 16, 2012

Awesome! Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment