-
Notifications
You must be signed in to change notification settings - Fork 752
/
install_travis_env.sh
57 lines (39 loc) · 1.19 KB
/
install_travis_env.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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
#!/usr/bin/env bash
# Installing MINICONDA
set -e
if [ "${TRAVIS_PYTHON_VERSION}" == "2.7" ]; then
wget http://repo.continuum.io/miniconda/Miniconda2-latest-Linux-x86_64.sh -O miniconda.sh;
else
wget http://repo.continuum.io/miniconda/Miniconda3-latest-Linux-x86_64.sh -O miniconda.sh;
fi
bash miniconda.sh -b -p $HOME/miniconda
export PATH="$HOME/miniconda/bin:$PATH"
hash -r
conda config --set always_yes yes --set changeps1 no
conda update -q conda
conda info -a
# Setting up the Test Environment
if [ "${LATEST}" = "true" ]; then
conda create -q -n testenv --yes python=$TRAVIS_PYTHON_VERSION numpy;
else
conda create -q -n testenv --yes python=$TRAVIS_PYTHON_VERSION numpy=$NUMPY_VERSION;
fi
source activate testenv
conda install -q -y pip
python --version
python -c "import numpy; print('numpy %s' % numpy.__version__)"
pip install --upgrade pip
if [ "${COVERAGE}" = "true" ]; then
pip install coveralls
fi
if [ "${LATEST}" = "true" ]; then
pip install tensorflow
else
pip install tensorflow==$TENSORFLOW_VERSION
fi
if [ "${NOTEBOOKS}" = "true" ]; then
conda install -q -y jupyter matplotlib;
pip install watermark;
pip install nbformat;
fi
python setup.py install;