-
Notifications
You must be signed in to change notification settings - Fork 347
/
install.sh
executable file
·41 lines (35 loc) · 1.11 KB
/
install.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
#!/bin/bash
# Create deps dir
mkdir ${DEPS_DIR}
cd ${DEPS_DIR}
# Install lcov and valgrind on linux
if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then
sudo apt-get update -y
sudo apt-get install -y lcov
sudo apt-get install -y valgrind
else if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then
brew update
brew install lcov
fi
fi
# Install Anaconda
# Use the miniconda installer for faster download / install of conda
# itself
if [[ $TRAVIS_OS_NAME == 'osx' ]]; then
wget http://repo.continuum.io/miniconda/Miniconda3-latest-MacOSX-x86_64.sh -O miniconda.sh;
else
wget http://repo.continuum.io/miniconda/Miniconda3-latest-Linux-x86_64.sh -O miniconda.sh;
fi
export CONDA_ROOT=${DEPS_DIR}/miniconda
chmod +x miniconda.sh && ./miniconda.sh -b -p $CONDA_ROOT
export PATH=${DEPS_DIR}/miniconda/bin:$PATH
hash -r
conda config --set always_yes yes --set changeps1 no
conda update --yes -q conda
conda create -n testenv --yes python=$PYTHON_VERSION numpy scipy future
source activate testenv
# Install cmake
conda install --yes -c conda-forge cmake
# Install coveralls lcov
gem install coveralls-lcov
cd ${TRAVIS_BUILD_DIR}