-
Notifications
You must be signed in to change notification settings - Fork 3
/
.travis_install.sh
40 lines (36 loc) · 898 Bytes
/
.travis_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
#!/bin/bash
# this script is called by the install step in .travis.yml
set -e
echo 'List files from cached directories'
echo 'pip:'
ls $HOME/.cache/pip
# deactivating the travis provided virtual env
deactivate
pushd .
cd
mkdir -p download
cd download
echo "Cached in $HOME/download :"
ls -l
echo
if [[ ! -f miniconda.sh ]]
then
wget https://repo.continuum.io/miniconda/Miniconda3-latest-Linux-x86_64.sh \
-O miniconda.sh
fi
bash miniconda.sh -b -p $HOME/miniconda
cd ..
export PATH="$HOME/miniconda/bin:$PATH"
hash -r
conda config --set always_yes yes --set changeps1 no
conda update -q conda
conda info -a
popd
conda create -q -n test-environment python=3
source activate test-environment
conda install --file requirements.txt
conda install pytest
pip install coveralls
python setup.py install
echo "[planet4_db]" > $HOME/.planet4.ini
echo "path = ~" >> $HOME/.planet4.ini