mirror of
https://github.com/luxfi/cli.git
synced 2026-10-30 17:01:20 +00:00
14 lines
445 B
Bash
Executable File
14 lines
445 B
Bash
Executable File
#!/usr/bin/env bash
|
|
# delete existing repo directory if it exists
|
|
# choosing to delete and re-clone to avoid merge conflicts
|
|
if [ -d {{ .LoadTestRepoDir }} ]; then
|
|
rm -rf {{ .LoadTestRepoDir }}
|
|
fi
|
|
git clone {{ .LoadTestRepo }}
|
|
echo "getting load test repo ..."
|
|
cd {{ .LoadTestRepoDir }}
|
|
git fetch --depth 1 origin {{ .LoadTestBranch }} -q
|
|
git checkout {{ .LoadTestBranch }}
|
|
eval {{ .LoadTestPath }}
|
|
echo "successfully built load test binary!"
|