-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy pathrun_tests.sh
More file actions
executable file
·37 lines (27 loc) · 1.06 KB
/
run_tests.sh
File metadata and controls
executable file
·37 lines (27 loc) · 1.06 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
#!/bin/bash
# The KB_AUTH_TOKEN environment variable must be set to a valid token for the base url
# Java must be installed to run this script.
# For mac: https://www.oracle.com/java/technologies/downloads/#jdk24-mac
CROMWELL_JAR=cromwell-44.jar
uv sync --dev
if [ ! -f "$HOME"/"$CROMWELL_JAR" ]; then
echo "Downloading Cromwell JAR file..."
wget "https://github.com/broadinstitute/cromwell/releases/download/44/$CROMWELL_JAR" -O "$HOME/$CROMWELL_JAR"
else
echo "Cromwell JAR file already exists, skipping download."
fi
touch "$HOME"/cromwell.conf
# uncomment this line and fill in the proper location for the docker socket if necessary
# export DOCKER_HOST=unix:///var/run/docker.sock:
# These must be a valid KBase authentication token for the base url
export KB_AUTH_TOKEN="$KB_AUTH_TOKEN"
# Must contain http
export KB_BASE_URL="https://ci.kbase.us/services/"
# Docker must be able to read these directories
export JOB_DIR=$(pwd)/test_jobdir
export KB_REF_DATA=$(pwd)/test_refdata
mkdir -p "$JOB_DIR"
mkdir -p "$KB_REF_DATA"
make mock
make testimage
make test