This repository has been archived by the owner on Sep 23, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathqiime.sh
executable file
·35 lines (29 loc) · 1.68 KB
/
qiime.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
#!/bin/bash -ex
# Cleanup that is necessary if this job is run on a node that previously had
# this job run on it.
rm -rf qiime-deploy qiime-deploy-conf qiime_software anaconda
git clone git://github.com/qiime/qiime-deploy.git
git clone git://github.com/qiime/qiime-deploy-conf.git
sed -i -e"s?log-level: INFO?log-level: DEBUG?" qiime-deploy-conf/qiime-1.9.1/qiime.conf
# Setup for python and core dependencies available via Miniconda. Taken and
# modified from https://github.com/biocore/bipy/blob/master/.travis.yml and
# https://gist.github.com/dan-blanchard/7045057
wget -q https://repo.continuum.io/miniconda/Miniconda3-latest-Linux-x86_64.sh -O miniconda.sh
chmod +x miniconda.sh
./miniconda.sh -b -p $WORKSPACE/anaconda
export PATH=$WORKSPACE/anaconda/bin:$PATH
conda create --quiet --yes -n test_env python=2.7 pip numpy=1.9.2 scipy=0.16.0 matplotlib=1.4.3 h5py pandas=0.16.2 libgfortran=1.0
source activate test_env
# Install QIIME and the rest of its Python dependencies.
pip install --allow-all-external --allow-unverified bipy --process-dependency-links $WORKSPACE/qiime
# Install QIIME's non-Python dependencies.
cp -r /home/ubuntu/qiime_software .
rm -rf qiime_software/*-latest-r-package qiime_software/r-*-release qiime_software/SeqPrep-latest-repository*
python qiime-deploy/qiime-deploy.py qiime_software -f qiime-deploy-conf/qiime-1.9.1/qiime.conf --force-remove-failed-dirs --force-remove-previous-repos
source qiime_software/activate.sh
export PATH=/home/ubuntu/jenkins-support:$PATH
mkdir -p /home/ubuntu/.config/matplotlib
echo 'backend : agg' > /home/ubuntu/.config/matplotlib/matplotlibrc
# We can finally test QIIME!
print_qiime_config.py -tf
python $WORKSPACE/qiime/tests/all_tests.py