Skip to content

Commit 0d06570

Browse files
author
Matthew Fisher
committed
Merge pull request #4124 from Joshua-Anderson/add-shellcheck-to-nodes
test(setup-node): add shellcheck to nodes
2 parents 8d238ba + 5612828 commit 0d06570

1 file changed

Lines changed: 9 additions & 0 deletions

File tree

tests/bin/setup-node.sh

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,15 @@ apt-get install -yq curl mercurial python-dev libffi-dev libpq-dev libyaml-dev g
3737
curl -sSL https://raw.githubusercontent.com/pypa/pip/7.0.3/contrib/get-pip.py | python -
3838
pip install virtualenv
3939

40+
# Use cabal (Haskell installer) to build and install ShellCheck
41+
apt-get install -yq cabal-install
42+
cabal update
43+
cd /tmp
44+
git clone --branch v0.3.8 --single-branch https://github.com/koalaman/shellcheck.git
45+
cd shellcheck
46+
cabal install --global
47+
apt-get purge -yq cabal-install
48+
4049
# create jenkins user and install node bootstrap script
4150
useradd -G docker,vboxusers -s /bin/bash --system -m jenkins
4251
mkdir -p /home/jenkins/bin

0 commit comments

Comments
 (0)