view 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
line wrap: on
line source

#!/bin/sh


## **@AUTHOR**: Lain Pavot - lain.pavot@inrae.fr
## **@DATE**: 22/06/2022

VENV=.venv
TEST_DIR=/tmp/history_metadata_extractor

if [ ! -d ".venv" ];then
  python3 -m virtualenv ${VENV} ;
fi


. ${VENV}/bin/activate

if [ "$(which planemo)" = "" ];then
   pip install planemo ;
fi


if [ ! -d "${TEST_DIR}" ];then
  planemo conda_install --conda_prefix ${TEST_DIR} . ;
fi

planemo lint --fail_level error ./*.xml || exit 255 ;

planemo test \
  --install_galaxy \
  --conda_dependency_resolution \
  --conda_prefix ${TEST_DIR} \
  --no_cleanup \
  --no_wait \
  --simultaneous_uploads \
  ${TEST_FLAGS} \
  history_metadata_extractor.xml \
;