|
1 | 1 | language: python
|
2 | 2 | python:
|
3 |
| - - "2.7_with_system_site_packages" |
4 |
| - - "3.2" |
| 3 | + - "2.7" |
5 | 4 | - "3.3"
|
| 5 | + - "3.4" |
| 6 | + |
6 | 7 | # install required system libraries
|
7 | 8 | before_install:
|
8 | 9 | - export DISPLAY=:99.0
|
9 | 10 | - sh -e /etc/init.d/xvfb start
|
10 | 11 | - sudo apt-get update --fix-missing -qq
|
11 |
| - - sudo apt-get build-dep python-scipy -qq |
12 |
| -# command to install dependencies from source |
13 |
| -# note, separating requirements so that travis |
14 |
| -# will get output in less than 5 min and won't |
15 |
| -# terminate, using q to keep build info to a |
16 |
| -# minumum for dependencies |
| 12 | + - sudo apt-get install gfortran liblapack-dev |
| 13 | + # use miniconda to install numpy/scipy, to avoid lengthy build from source |
| 14 | + - wget http://repo.continuum.io/miniconda/Miniconda-latest-Linux-x86_64.sh -O miniconda.sh |
| 15 | + - chmod +x miniconda.sh |
| 16 | + - ./miniconda.sh -b |
| 17 | + - export PATH=/home/travis/miniconda/bin:$PATH |
| 18 | + - conda update --yes conda |
| 19 | + # The next couple lines fix a crash with multiprocessing on Travis and are not specific to using Miniconda |
| 20 | + - sudo rm -rf /dev/shm |
| 21 | + - sudo ln -s /run/shm /dev/shm |
| 22 | + |
| 23 | +# Install packages |
17 | 24 | install:
|
18 |
| - - while [[ 1 ]]; do echo "building deps"; sleep 300; done & |
19 |
| - - msg_pid=$! |
20 |
| - - pip install -q coverage |
21 |
| - - pip install -q coveralls |
22 |
| - - pip install -q nose |
23 |
| - - pip install -q numpy |
24 |
| - - pip install -q scipy |
25 |
| - - pip install -q slycot |
26 |
| - - pip install -q matplotlib==1.3.1 |
27 |
| - - kill $msg_pid |
| 25 | + - conda install --yes python=$TRAVIS_PYTHON_VERSION coverage nose numpy scipy matplotlib pip |
| 26 | + - pip install coveralls |
| 27 | + - pip install slycot |
28 | 28 |
|
29 | 29 | # command to run tests
|
30 | 30 | script:
|
|
0 commit comments