New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

RF: switch travis tests to use virtualenvs #474

Merged
merged 3 commits into from Nov 22, 2014

Conversation

Projects
None yet
4 participants
@matthew-brett
Member

matthew-brett commented Nov 22, 2014

We were using a trick to get the dependencies on travis, working round their
virtualenv setup.

Now there is a usable travis wheel repository, we can use our own virtualenvs
and install all optional dependencies.

Also allows checking minimal dependencies, and Pythons 2.6 through 3.4.

@stefanv

This comment has been minimized.

Contributor

stefanv commented Nov 22, 2014

This looks great--just needs a rebase.

@arokem

This comment has been minimized.

Member

arokem commented Nov 22, 2014

Thanks for doing this - I tried and lost patience. It's so frustrating do debugging-by-Travis.

Would you mind also adding the '--verbose' flag in there? Seems like it could be useful.

matthew-brett added some commits Jun 4, 2014

RF: switch travis tests to use virtualenvs
We were using a trick to get the dependencies on travis, working round
their virtualenv setup.

Now there is a usable travis wheel repository, we can use our own
virtualenvs and install all optional dependencies.
RF: refactor coverage in travis file
Coverage went wonky with virtualenvs
TST: add verbose flag to travis test output
Use standard nosetests, bug for setuptools we were working round was
fixed a while ago in nose.

@matthew-brett matthew-brett force-pushed the matthew-brett:refactor-travising-2 branch from 7a9e463 to 3b41875 Nov 22, 2014

arokem added a commit that referenced this pull request Nov 22, 2014

Merge pull request #474 from matthew-brett/refactor-travising-2
RF: switch travis tests to use virtualenvs

@arokem arokem merged commit 4658582 into nipy:master Nov 22, 2014

1 check passed

continuous-integration/travis-ci The Travis CI build passed
Details

@matthew-brett matthew-brett deleted the matthew-brett:refactor-travising-2 branch Nov 22, 2014

- source venv/bin/activate
- pip install nose # always
- sudo apt-get install libblas-dev liblapack-dev libatlas3gf-base
- pip install --no-index -f http://travis-wheels.scikit-image.org $DEPENDS

This comment has been minimized.

@ogrisel

ogrisel Nov 23, 2014

FYI it might help to increase the timeout if the network is not very reliable:

pip install --timeout=60 ...

otherwise some noticed unstable builds with the default timeout of 15 seconds.

This comment has been minimized.

@arokem

arokem Nov 23, 2014

Member

Thanks for the tip: #478

On Sun, Nov 23, 2014 at 9:59 AM, Olivier Grisel notifications@github.com
wrote:

In .travis.yml:

    • 3.4
      +matrix:
  • include:
    • python: 2.7
  •  env:
    
  •    - COVERAGE=1
    
  • To test minimum dependencies

    • python: 2.7
  •  env:
    
  •    - DEPENDS="cython==0.18 numpy==1.6.0 scipy==0.9.0 nibabel"
    
    +before_install:
    • virtualenv venv
    • source venv/bin/activate
    • pip install nose # always
    • sudo apt-get install libblas-dev liblapack-dev libatlas3gf-base

FYI It might help to increase the timeout if the network is not very
reliable:

pip install --timeout=60 ...

otherwise some noticed unstable build with the default timeout of 15
seconds.


Reply to this email directly or view it on GitHub
https://github.com/nipy/dipy/pull/474/files#r20766386.

This was referenced Nov 23, 2014

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