Skip to content

Commit e2b37ad

Browse files
committed
Use miniconda for Travis build
This dramatically speeds up the installation of numpy, scipy, and matplotlib in the Travis build. Note that python 3.2 is not available in Anaconda, however.
1 parent d091aa5 commit e2b37ad

File tree

1 file changed

+18
-18
lines changed

1 file changed

+18
-18
lines changed

.travis.yml

Lines changed: 18 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,30 +1,30 @@
11
language: python
22
python:
3-
- "2.7_with_system_site_packages"
4-
- "3.2"
3+
- "2.7"
54
- "3.3"
5+
- "3.4"
6+
67
# install required system libraries
78
before_install:
89
- export DISPLAY=:99.0
910
- sh -e /etc/init.d/xvfb start
1011
- 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
1724
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
2828

2929
# command to run tests
3030
script:

0 commit comments

Comments
 (0)