From 67b0f3a34ae84edf63881021042b15b952c85105 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20Besson?= Date: Mon, 22 Jan 2024 08:51:56 +0000 Subject: [PATCH] Override cli-build to use pytest command directly --- .omeroci/cli-build | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100755 .omeroci/cli-build diff --git a/.omeroci/cli-build b/.omeroci/cli-build new file mode 100755 index 00000000..398ed980 --- /dev/null +++ b/.omeroci/cli-build @@ -0,0 +1,18 @@ +#!/bin/bash +source /infra/utils + +set -e +set -u +set -x + +TARGET=${TARGET:-..} +cd $TARGET + +GUESS=${PWD#*omero-cli-*} +PLUGIN=${PLUGIN:-$GUESS} + +export OMERO_DIST=${OMERO_DIST:-/opt/omero/server/OMERO.server} +omero $PLUGIN -h + +export ICE_CONFIG=${OMERO_DIST}/etc/ice.config +pytest test -vs