|
1 | 1 | language: python
|
2 | 2 | python:
|
3 |
| - - "2.7" |
| 3 | + - 2.7 |
| 4 | + - 3.3 |
| 5 | +notifications: |
| 6 | + email: false |
| 7 | + |
4 | 8 | before_install:
|
| 9 | + - wget http://repo.continuum.io/miniconda/Miniconda-latest-Linux-x86_64.sh -O miniconda.sh |
| 10 | + - chmod +x miniconda.sh |
| 11 | + - ./miniconda.sh -b |
| 12 | + - export PATH=/home/travis/miniconda/bin:$PATH |
| 13 | + - conda update --yes conda |
| 14 | + # The next couple lines fix a crash with multiprocessing on Travis and are not specific to using Miniconda |
| 15 | + - sudo rm -rf /dev/shm |
| 16 | + - sudo ln -s /run/shm /dev/shm |
5 | 17 | #- sudo apt-get update -qq
|
6 | 18 | #- sudo apt-get install -qq libatlas-dev libatlas-base-dev liblapack-dev gfortran
|
7 | 19 | #- sudo apt-get install -qq python-numpy python-scipy python-matplotlib
|
8 |
| - - virtualenv --system-site-packages ~/virtualenv/this |
9 |
| - - source ~/virtualenv/this/bin/activate |
| 20 | + # - virtualenv --system-site-packages ~/virtualenv/this |
| 21 | + # - source ~/virtualenv/this/bin/activate |
10 | 22 | install:
|
11 |
| - - pip install -r requirements.txt |
12 |
| - - pip install nose |
13 |
| - - pip install coverage |
14 |
| - - pip install coveralls |
| 23 | + - conda install --yes python=$TRAVIS_PYTHON_VERSION atlas numpy scipy matplotlib nose |
| 24 | + # Coverage packages are on my binstar channel |
| 25 | + - conda install --yes -c dan_blanchard python-coveralls nose-cov |
15 | 26 | - python setup.py install
|
| 27 | + # - pip install -r requirements.txt |
| 28 | + # - pip install nose |
| 29 | + # - pip install coverage |
| 30 | + # - pip install coveralls |
| 31 | + # - python setup.py install |
16 | 32 | script:
|
17 |
| - - nosetests -a '!slow' --with-coverage --cover-package=commpy |
| 33 | + #- nosetests -a '!slow' --with-coverage --cover-package=commpy |
| 34 | + - nosetests -a '!slow' --with-cov --cov commpy --cov-config .coveragerc --logging-level=INFO |
| 35 | + |
| 36 | +# Calculate coverage |
18 | 37 | after_success:
|
19 |
| - - coveralls |
| 38 | + - coveralls --config_file .coveragerc |
20 | 39 |
|
21 | 40 | #language: python
|
22 | 41 | #python:
|
|
0 commit comments