File tree Expand file tree Collapse file tree 1 file changed +14
-13
lines changed
Expand file tree Collapse file tree 1 file changed +14
-13
lines changed Original file line number Diff line number Diff line change 11# Config file for automatic testing at travis-ci.org
22language : python
3+ python :
4+ - " 3.4"
5+ - " 3.3"
6+ - " 2.7"
37
48# install gcc 4.8 for cxx11
59before_install :
@@ -8,22 +12,19 @@ before_install:
812 - sudo apt-get -qq install g++-4.8 gcc-4.8
913 - sudo ln -sf /usr/bin/gcc-4.8 /usr/bin/gcc
1014 - sudo ln -sf /usr/bin/g++-4.8 /usr/bin/g++
11- - wget http://repo.continuum.io/miniconda/Miniconda-latest-Linux-x86_64.sh -O miniconda.sh
12- - chmod +x miniconda.sh
13- - ./miniconda.sh -b
14- - export PATH=/home/travis/miniconda/bin:$PATH
15+ # We do this conditionally because it saves us some downloading if the
16+ # version is the same.
17+ - if [[ "$TRAVIS_PYTHON_VERSION" == "2.7" ]]; then
18+ wget https://repo.continuum.io/miniconda/Miniconda-latest-Linux-x86_64.sh -O miniconda.sh;
19+ else
20+ wget https://repo.continuum.io/miniconda/Miniconda3-latest-Linux-x86_64.sh -O miniconda.sh;
21+ fi
22+ - bash miniconda.sh -b -p $HOME/miniconda
23+ - export PATH="$HOME/miniconda/bin:$PATH"
1524 - conda update --yes conda
16- # The next couple lines fix a crash with multiprocessing on Travis and are not specific to using Miniconda
17- - sudo rm -rf /dev/shm
18- - sudo ln -s /run/shm /dev/shm
19-
20- python :
21- - " 3.4"
22- - " 3.3"
23- - " 2.7"
25+ - travis_retry conda install --yes python=$TRAVIS_PYTHON_VERSION pip numpy
2426
2527install :
26- - conda install --yes python=$TRAVIS_PYTHON_VERSION atlas numpy pip
2728 - pip install coveralls
2829 - pip install -r requirements.txt
2930
You can’t perform that action at this time.
0 commit comments