build/ops: run "npm ci" with a one-hour timeout

Fixes: https://tracker.ceph.com/issues/40645
Signed-off-by: Nathan Cutler <ncutler@suse.com>
This commit is contained in:
Nathan Cutler 2019-07-11 16:07:23 +02:00
parent d27069f751
commit 7df4b92789
2 changed files with 2 additions and 2 deletions

View File

@ -90,7 +90,7 @@ build_dashboard_frontend() {
$TEMP_DIR/bin/nodeenv -p --node=10.13.0
cd src/pybind/mgr/dashboard/frontend
. $TEMP_DIR/bin/activate
npm ci
timeout 1h npm ci
npm run build -- --prod --progress=false
deactivate
cd $CURR_DIR

View File

@ -63,7 +63,7 @@ cd $DASH_DIR/frontend
jq .[].target=$BASE_URL proxy.conf.json.sample > proxy.conf.json
. $BUILD_DIR/src/pybind/mgr/dashboard/node-env/bin/activate
npm ci
timeout 1h npm ci
if [ $DEVICE == "chrome" ]; then
npm run e2e || stop 1