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

if [[ $TRAVIS_OS_NAME == "osx" ]]; then
4
5
    rm '/usr/local/include/c++'
#    brew cask uninstall oclint  #  Reserve variant to deal with conflict link
6
7
8
9
10
    if [[ ${TASK} == "mpi" ]]; then
        brew install open-mpi
    else
        brew install gcc
    fi
11
#    brew link --overwrite gcc  # Previous variant to deal with conflict link
12
    wget -O conda.sh https://repo.continuum.io/miniconda/Miniconda${PYTHON_VERSION:0:1}-latest-MacOSX-x86_64.sh
wxchan's avatar
wxchan committed
13
else
14
15
16
17
18
    if [[ ${TASK} == "mpi" ]]; then
        sudo apt-get install -y libopenmpi-dev openmpi-bin
    fi
    if [[ ${TASK} == "gpu" ]]; then
        sudo apt-get install -y ocl-icd-opencl-dev
wxchan's avatar
wxchan committed
19
    fi
20
    wget -O conda.sh https://repo.continuum.io/miniconda/Miniconda${PYTHON_VERSION:0:1}-latest-Linux-x86_64.sh
wxchan's avatar
wxchan committed
21
fi