0
|
1 #!/bin/sh
|
|
2
|
|
3
|
|
4 ## **@AUTHOR**: Lain Pavot - lain.pavot@inrae.fr
|
|
5 ## **@DATE**: 22/06/2022
|
|
6
|
|
7 VENV=.venv
|
|
8 TEST_DIR=/tmp/history_metadata_extractor
|
|
9
|
|
10 if [ ! -d ".venv" ];then
|
|
11 python3 -m virtualenv ${VENV} ;
|
|
12 fi
|
|
13
|
|
14
|
|
15 . ${VENV}/bin/activate
|
|
16
|
|
17 if [ "$(which planemo)" = "" ];then
|
|
18 pip install planemo ;
|
|
19 fi
|
|
20
|
|
21
|
|
22 if [ ! -d "${TEST_DIR}" ];then
|
|
23 planemo conda_install --conda_prefix ${TEST_DIR} . ;
|
|
24 fi
|
|
25
|
|
26 planemo lint --fail_level error ./*.xml || exit 255 ;
|
|
27
|
|
28 planemo test \
|
|
29 --install_galaxy \
|
|
30 --conda_dependency_resolution \
|
|
31 --conda_prefix ${TEST_DIR} \
|
|
32 --no_cleanup \
|
|
33 --no_wait \
|
|
34 --simultaneous_uploads \
|
|
35 ${TEST_FLAGS} \
|
|
36 history_metadata_extractor.xml \
|
|
37 ;
|