X-Git-Url: https://gerrit.linuxfoundation.org/infra/gitweb?a=blobdiff_plain;ds=inline;f=shell%2Fnode-install.sh;fp=shell%2Fnode-install.sh;h=cec2f33373b58a4f36536c471d431c4c1de634a0;hb=228fd6f92c633917139146271f8d8327ca11bffa;hp=0000000000000000000000000000000000000000;hpb=ed5d95fd9062c1adee8ee7020eb9deb4f2b7e10e;p=releng%2Fglobal-jjb.git diff --git a/shell/node-install.sh b/shell/node-install.sh new file mode 100644 index 00000000..cec2f333 --- /dev/null +++ b/shell/node-install.sh @@ -0,0 +1,25 @@ +#!/bin/bash +# SPDX-License-Identifier: EPL-1.0 +############################################################################## +# Copyright (c) 2017 The Linux Foundation and others. +# +# All rights reserved. This program and the accompanying materials +# are made available under the terms of the Eclipse Public License v1.0 +# which accompanies this distribution, and is available at +# http://www.eclipse.org/legal/epl-v10.html +############################################################################## +echo "---> node-install.sh" + +# Ensure we fail the job if any steps fail. +# DO NOT set -u as virtualenv's activate script has unbound variables +set -e -o pipefail + +virtualenv --quiet "/tmp/v/python" +# shellcheck source=/tmp/v/node/bin/activate disable=SC1091 +source "/tmp/v/python/bin/activate" +pip install --quiet --upgrade pip +pip install --quiet --upgrade pipdeptree +pip install --quiet --upgrade nodeenv + +echo "----> Pip Dependency Tree" +pipdeptree