mirror of
https://seed.radicle.dev/rad:z4V1sjrXqjvFdnCUbxPFqd5p4DtH5.git
synced 2026-11-21 06:10:44 +08:00
Download radicle-httpd executable for e2e tests
Signed-off-by: Adam Szkoda <adaszko@gmail.com>
This commit is contained in:
@@ -49,9 +49,6 @@ prepare_workspace() {
|
||||
echo "Unpacking fixture $FIXTURE"
|
||||
mkdir -p $WORKSPACE
|
||||
tar -xf $FIXTURE -C $WORKSPACE
|
||||
if [ "$CI" = true ]; then
|
||||
sudo chown -R 0:0 $WORKSPACE
|
||||
fi
|
||||
}
|
||||
|
||||
run_docker() {
|
||||
@@ -72,6 +69,13 @@ run_docker() {
|
||||
}
|
||||
|
||||
run_binary() {
|
||||
if [ $CI = true ]; then
|
||||
local binaries_dir="$REPO_ROOT/tests/tmp"
|
||||
gsutil cp "gs://heartwood-artifacts/${REV}/radicle-httpd" "$binaries_dir"
|
||||
chmod a+x "${binaries_dir}/radicle-httpd"
|
||||
export PATH="$binaries_dir:$PATH"
|
||||
fi
|
||||
|
||||
if ! [ -x "$(command -v $HTTP_API_BINARY)" ]; then
|
||||
echo
|
||||
echo "Couldn't find the $HTTP_API_BINARY binary in your PATH."
|
||||
|
||||
Reference in New Issue
Block a user