forked from bioconda/bioconda-utils
-
Notifications
You must be signed in to change notification settings - Fork 0
/
travis-setup.sh
executable file
·40 lines (32 loc) · 1.11 KB
/
travis-setup.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
set -euo pipefail
# Sets up travis-ci environment for testing bioconda-utils.
if [[ $TRAVIS_OS_NAME = "linux" ]]
then
tag=Linux
else
tag=MacOSX
fi
curl -O https://repo.continuum.io/miniconda/Miniconda3-latest-${tag}-x86_64.sh
sudo bash Miniconda3-latest-${tag}-x86_64.sh -b -p /anaconda
sudo chown -R $USER /anaconda
export PATH=/anaconda/bin:$PATH
# TODO: it would be nice to have a single location where channels are
# configured across bioconda-recipes and bioconda-utils.
conda config --add channels conda-forge
conda config --add channels defaults
conda config --add channels r
conda config --add channels bioconda
conda config --get
conda install -y --file conda-requirements.txt
python setup.py install
pip install -r pip-test-requirements.txt
pip install -r pip-requirements.txt
# Add local channel as highest priority
conda config --add channels file://anaconda/conda-bld
conda config --get
# involucro used for mulled-build
curl -O https://github.com/involucro/involucro/releases/download/v1.1.2/involucro
sudo mv involucro /opt/involucro
sudo chmod +x /opt/involucro
export PATH=/opt/involucro:$PATH