8000 Make Travis build consistent with anaconda docs · basicmachines/python-control@5ac5100 · GitHub
[go: up one dir, main page]

Skip to content

Commit 5ac5100

Browse files
committed
Make Travis build consistent with anaconda docs
http://conda.pydata.org/docs/travis.html
1 parent 32668d3 commit 5ac5100

File tree

1 file changed

+11
-8
lines changed

1 file changed

+11
-8
lines changed

.travis.yml

Lines changed: 11 additions & 8 deletions
9B65
Original file line numberDiff line numberDiff line change
@@ -11,14 +11,17 @@ before_install:
1111
- sudo apt-get update --fix-missing -qq
1212
- sudo apt-get install gfortran liblapack-dev
1313
# 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
14+
- if [[ "$TRAVIS_PYTHON_VERSION" == "2.7" ]]; then
15+
wget http://repo.continuum.io/miniconda/Miniconda-3.4.2-Linux-x86_64.sh -O miniconda.sh;
16+
else
17+
wget http://repo.continuum.io/miniconda/Miniconda3-3.4.2-Linux-x86_64.sh -O miniconda.sh;
18+
fi
19+
- bash miniconda.sh -b -p $HOME/miniconda
20+
- export PATH="$HOME/miniconda/bin:$PATH"
21+
- hash -r
22+
- conda config --set always_yes yes --set changeps1 no
23+
- conda update -q conda
24+
- conda info -a
2225

2326
# Install packages
2427
install:

0 commit comments

Comments
 (0)
0