Skip to content

Commit 7e3cebb

Browse files
authored
Merge pull request #1518 from luxonis/feature/update_stability_sh
Updated run_hil_stability.sh
2 parents 7443900 + 717eaf1 commit 7e3cebb

File tree

1 file changed

+8
-3
lines changed

1 file changed

+8
-3
lines changed

scripts/hil/run_hil_stability.sh

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,20 @@
11
#!/bin/bash
22

33
# Get depthai version from input argument or print message
4-
if [ -z "$1" ] || [ "$1" == "latest" ]; then
4+
DEPTHAI_VERSION="$1"
5+
6+
RELEASE_URL="https://artifacts.luxonis.com/artifactory/luxonis-python-release-local/"
7+
SNAPSHOT_URL="https://artifacts.luxonis.com/artifactory/luxonis-python-snapshot-local/"
8+
9+
if [ -z "$DEPTHAI_VERSION" ] || [ "$DEPTHAI_VERSION" == "latest" ]; then
510
echo "Using latest depthai"
611
source /home/hil/.hil/bin/activate
712
else
8-
DEPTHAI_VERSION="$1"
13+
echo "Installing depthai==$DEPTHAI_VERSION (checking both release and snapshot artifactories)"
914
rm -rf venv
1015
python3 -m venv venv
1116
source venv/bin/activate
12-
pip install --no-cache-dir --extra-index-url https://artifacts.luxonis.com/artifactory/luxonis-python-release-local/ depthai=="$DEPTHAI_VERSION"
17+
pip install --no-cache-dir --extra-index-url "$RELEASE_URL" --extra-index-url "$SNAPSHOT_URL" depthai=="$DEPTHAI_VERSION"
1318
fi
1419

1520
export DEPTHAI_PLATFORM=rvc4

0 commit comments

Comments
 (0)