forked from toolshed/abra
test: break up integration, rejig manual
This commit is contained in:
22
tests/integration/common.sh
Executable file
22
tests/integration/common.sh
Executable file
@ -0,0 +1,22 @@
|
||||
#!/bin/bash
|
||||
|
||||
set -e
|
||||
|
||||
function init() {
|
||||
ABRA="$HOME/.local/bin/abra"
|
||||
INSTALLER_URL="https://install.abra.coopcloud.tech"
|
||||
|
||||
for arg in "$@"; do
|
||||
if [ "$arg" == "--dev" ]; then
|
||||
ABRA="/src/abra"
|
||||
INSTALLER_URL="https://git.coopcloud.tech/coop-cloud/abra/raw/branch/main/scripts/installer/installer"
|
||||
fi
|
||||
done
|
||||
|
||||
export PATH=$PATH:$HOME/.local/bin
|
||||
|
||||
echo "choosing $ABRA as abra command"
|
||||
echo "choosing $INSTALLER_URL as abra installer url"
|
||||
}
|
||||
|
||||
init "$@"
|
Reference in New Issue
Block a user