annotate planemo_test.sh @ 1:c7f4f2ac38f2 draft default tip

" master branch Updating"
author lain
date Tue, 09 Aug 2022 15:19:45 +0000
parents 426b0f85a311
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
0
426b0f85a311 " master branch Updating"
lain
parents:
diff changeset
1 #!/bin/sh
426b0f85a311 " master branch Updating"
lain
parents:
diff changeset
2
426b0f85a311 " master branch Updating"
lain
parents:
diff changeset
3
426b0f85a311 " master branch Updating"
lain
parents:
diff changeset
4 ## **@AUTHOR**: Lain Pavot - lain.pavot@inrae.fr
426b0f85a311 " master branch Updating"
lain
parents:
diff changeset
5 ## **@DATE**: 22/06/2022
426b0f85a311 " master branch Updating"
lain
parents:
diff changeset
6
426b0f85a311 " master branch Updating"
lain
parents:
diff changeset
7 VENV=.venv
426b0f85a311 " master branch Updating"
lain
parents:
diff changeset
8 TEST_DIR=/tmp/history_metadata_extractor
426b0f85a311 " master branch Updating"
lain
parents:
diff changeset
9
426b0f85a311 " master branch Updating"
lain
parents:
diff changeset
10 if [ ! -d ".venv" ];then
426b0f85a311 " master branch Updating"
lain
parents:
diff changeset
11 python3 -m virtualenv ${VENV} ;
426b0f85a311 " master branch Updating"
lain
parents:
diff changeset
12 fi
426b0f85a311 " master branch Updating"
lain
parents:
diff changeset
13
426b0f85a311 " master branch Updating"
lain
parents:
diff changeset
14
426b0f85a311 " master branch Updating"
lain
parents:
diff changeset
15 . ${VENV}/bin/activate
426b0f85a311 " master branch Updating"
lain
parents:
diff changeset
16
426b0f85a311 " master branch Updating"
lain
parents:
diff changeset
17 if [ "$(which planemo)" = "" ];then
426b0f85a311 " master branch Updating"
lain
parents:
diff changeset
18 pip install planemo ;
426b0f85a311 " master branch Updating"
lain
parents:
diff changeset
19 fi
426b0f85a311 " master branch Updating"
lain
parents:
diff changeset
20
426b0f85a311 " master branch Updating"
lain
parents:
diff changeset
21
426b0f85a311 " master branch Updating"
lain
parents:
diff changeset
22 if [ ! -d "${TEST_DIR}" ];then
426b0f85a311 " master branch Updating"
lain
parents:
diff changeset
23 planemo conda_install --conda_prefix ${TEST_DIR} . ;
426b0f85a311 " master branch Updating"
lain
parents:
diff changeset
24 fi
426b0f85a311 " master branch Updating"
lain
parents:
diff changeset
25
426b0f85a311 " master branch Updating"
lain
parents:
diff changeset
26 planemo lint --fail_level error ./*.xml || exit 255 ;
426b0f85a311 " master branch Updating"
lain
parents:
diff changeset
27
426b0f85a311 " master branch Updating"
lain
parents:
diff changeset
28 planemo test \
426b0f85a311 " master branch Updating"
lain
parents:
diff changeset
29 --install_galaxy \
426b0f85a311 " master branch Updating"
lain
parents:
diff changeset
30 --conda_dependency_resolution \
426b0f85a311 " master branch Updating"
lain
parents:
diff changeset
31 --conda_prefix ${TEST_DIR} \
426b0f85a311 " master branch Updating"
lain
parents:
diff changeset
32 --no_cleanup \
426b0f85a311 " master branch Updating"
lain
parents:
diff changeset
33 --no_wait \
426b0f85a311 " master branch Updating"
lain
parents:
diff changeset
34 --simultaneous_uploads \
426b0f85a311 " master branch Updating"
lain
parents:
diff changeset
35 ${TEST_FLAGS} \
426b0f85a311 " master branch Updating"
lain
parents:
diff changeset
36 history_metadata_extractor.xml \
426b0f85a311 " master branch Updating"
lain
parents:
diff changeset
37 ;