Skip to content

Commit bac91fa

Browse files
committed
activate conda env for qp-qiime2
1 parent 26ee536 commit bac91fa

File tree

1 file changed

+9
-3
lines changed

1 file changed

+9
-3
lines changed

Images/test_plugin.sh

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,10 @@ else
1111
REQUESTS_CA_BUNDLE="" pip install pytest;
1212
fi;
1313

14-
# clone plugin repository
15-
git clone https://github.com/qiita-spots/${PLUGIN}
14+
if [ "qp-qiime2" != "$PLUGIN" ]; then
15+
# clone plugin repository
16+
git clone https://github.com/qiita-spots/${PLUGIN}
17+
fi;
1618

1719
# NOTE: client api reset only works when communicating with Qitta Master,
1820
# thus, you need to directly address the port of the master container. Don't
@@ -42,4 +44,8 @@ export QIITA_PORT=21174
4244
export QIITA_ROOTCA_CERT=$SSL_CERT_FILE
4345

4446
# change into plugin source directory and execute actual tests
45-
cd ${PLUGIN} && pytest
47+
if [ "qp-qiime2" == "$PLUGIN" ]; then
48+
source /opt/conda/etc/profile.d/conda.sh; conda activate /opt/conda/envs/qiime2; cd ${PLUGIN} && pytest;
49+
else
50+
cd ${PLUGIN} && pytest;
51+
fi;

0 commit comments

Comments
 (0)