Skip to content

Commit

Permalink
Merge pull request #2611 from reubenmiller/dev-git-lfs-install-improve
Browse files Browse the repository at this point in the history
test: support installing git-lfs in different environments and only if necessary
  • Loading branch information
reubenmiller authored Jan 25, 2024
2 parents 0d4c5aa + 9642b45 commit fb82765
Showing 1 changed file with 16 additions and 2 deletions.
18 changes: 16 additions & 2 deletions tests/RobotFramework/bin/setup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,22 @@ 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
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
fi

git lfs install
git lfs pull

Expand Down

1 comment on commit fb82765

@github-actions
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Robot Results

✅ Passed ❌ Failed ⏭️ Skipped Total Pass % ⏱️ Duration
381 0 3 381 100 52m47.743s

Please sign in to comment.