summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTobias Henkel <tobias.henkel@bmw.de>2018-02-27 11:31:17 +0000
committerTobias Henkel <tobias.henkel@bmw.de>2018-03-06 06:13:44 +0000
commitff50be622e92028f5e275253abc01f85f617a1f5 (patch)
treed57e9f804df34c5c623bf7f39783bc08e6ddbd1d
parent9358b7de2af0146cc1acc52d67b85fa0dfa28622 (diff)
downloadzuul-ff50be622e92028f5e275253abc01f85f617a1f5.tar.gz
Support brew for installing the js tools
Some developers like me hack on zuul on a mac. Support for installing the js tooling using brew is quite trivial. Change-Id: Ia5b68dbf80347adcc0fdf94c2d9f0685f32c8cd6
-rwxr-xr-xtools/install-js-tools.sh6
1 files changed, 5 insertions, 1 deletions
diff --git a/tools/install-js-tools.sh b/tools/install-js-tools.sh
index 01d885499..a2a77cafc 100755
--- a/tools/install-js-tools.sh
+++ b/tools/install-js-tools.sh
@@ -28,8 +28,12 @@ if type apt-get; then
sudo DEBIAN_FRONTEND=noninteractive \
apt-get -q --option "Dpkg::Options::=--force-confold" --assume-yes \
install nodejs yarn
-else
+elif type yum; then
sudo curl https://dl.yarnpkg.com/rpm/yarn.repo -o /etc/yum.repos.d/yarn.repo
sudo $(dirname $0)/install-js-repos-rpm.sh
sudo yum -y install nodejs yarn
+elif type brew; then
+ brew install nodejs yarn
+else
+ echo "Unsupported platform"
fi