Skip to content

Commit

Permalink
test: support installing git-lfs in different environments and only i…
Browse files Browse the repository at this point in the history
…f necessary

Signed-off-by: Reuben Miller <reuben.d.miller@gmail.com>
  • Loading branch information
reubenmiller committed Jan 22, 2024
1 parent 02d20ea commit 6c50607
Showing 1 changed file with 18 additions and 4 deletions.
22 changes: 18 additions & 4 deletions tests/RobotFramework/bin/setup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,24 @@ pushd "$SCRIPT_DIR/.." >/dev/null || exit 1
export PYTHON_KEYRING_BACKEND=keyring.backends.null.Keyring

# Use git lfs for test artefacts
curl -s https://packagecloud.io/install/repositories/github/git-lfs/script.deb.sh | sudo bash
sudo apt install -y git-lfs
git lfs install
git lfs pull
if ! git lfs env >/dev/null 2>&1; then
# install git-lfs dependency, try proceeding anyway if a package manager is not found
if command -V apt-get >/dev/null 2>&1; then
curl -s https://packagecloud.io/install/repositories/github/git-lfs/script.deb.sh | sudo bash
sudo apt-get install -y --no-install-recommends git-lfs
elif command -V yum 2>/dev/null 2>&1; then
curl -s https://packagecloud.io/install/repositories/github/git-lfs/script.rpm.sh | sudo bash
sudo yum install -y git-lfs
elif command -V dnf 2>/dev/null 2>&1; then
curl -s https://packagecloud.io/install/repositories/github/git-lfs/script.rpm.sh | sudo bash
sudo dnf install -y git-lfs
elif command -V brew >/dev/null 2>&1; then
brew install git-lfs
fi

git lfs install
git lfs pull
fi

#
# Setup python virtual environment and install dependencies
Expand Down

0 comments on commit 6c50607

Please sign in to comment.