Skip to content

Commit

Permalink
Fix cloudserver dependency as optional
Browse files Browse the repository at this point in the history
Issue: BB-585
  • Loading branch information
KillianG committed Nov 5, 2024
1 parent c66992e commit 2101e66
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
4 changes: 1 addition & 3 deletions .github/scripts/run_ft_tests.bash
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,6 @@ NODE_PATH=${NODE_PATH:-node_modules}
# port for cloudserver
PORT=8000

git clone --branch 8.6.8 [email protected]:scality/cloudserver

if [ ! -d "${NODE_PATH}/@zenko/cloudserver" ]; then
echo "cloudserver module was not found!"
exit 1
Expand All @@ -21,6 +19,6 @@ killandsleep () {
sleep 10
}

cd cloudserver && yarn run mem_backend & bash tests/utils/wait_for_local_port.bash $PORT 40
cd ${NODE_PATH}/@zenko/cloudserver && yarn run mem_backend & bash tests/utils/wait_for_local_port.bash $PORT 40
./node_modules/.bin/nyc --clean --silent yarn run $1
./node_modules/.bin/nyc report --report-dir "./coverage/$1" --reporter=lcov
3 changes: 3 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,9 @@
"sinon": "^19.0.2",
"zookeeper-mock": "^1.2.0"
},
"optionalDependencies": {
"@zenko/cloudserver": "git+https://github.com/scality/cloudserver#8.6.8"
},
"engines": {
"node": ">=22"
}
Expand Down

0 comments on commit 2101e66

Please sign in to comment.