setup.sh 709 Bytes
Newer Older
wxchan's avatar
wxchan committed
1
2
3
#!/bin/bash

if [[ $TRAVIS_OS_NAME == "osx" ]]; then
4
5
6
7
8
9
    if [[ ${TASK} == "mpi" ]]; then
        brew install open-mpi
    else
        brew install gcc
    fi
    brew link --overwrite gcc
10
    wget -O conda.sh https://repo.continuum.io/miniconda/Miniconda${PYTHON_VERSION:0:1}-latest-MacOSX-x86_64.sh
wxchan's avatar
wxchan committed
11
else
12
    if [[ ${TASK} != "pylint" ]] && [[ ${TASK} != "check-docs" ]]; then
wxchan's avatar
wxchan committed
13
14
15
16
17
        sudo add-apt-repository ppa:george-edison55/cmake-3.x -y
        sudo apt-get update -q
        sudo apt-get install -y cmake
        sudo apt-get install -y libopenmpi-dev openmpi-bin build-essential
    fi
18
    wget -O conda.sh https://repo.continuum.io/miniconda/Miniconda${PYTHON_VERSION:0:1}-latest-Linux-x86_64.sh
wxchan's avatar
wxchan committed
19
fi