Travis: Install `shfmt`
@@ -338,6 +338,7 @@ before_install:
[[ -n "$CC_COMPILER" ]] && export CC="$CC_COMPILER"
[[ -n "$CXX_COMPILER" ]] && export CXX="$CXX_COMPILER"
sudo apt-get -qq update
+ sudo apt-get install snapd # The Snap Store offers a recent version of Go required by `shfmt`
sudo apt-get install ninja-build
sudo apt-get install devscripts # contains `checkbashisms`
sudo apt-get install libboost-all-dev
@@ -349,6 +350,9 @@ before_install:
sudo apt-get install libxerces-c-dev
sudo apt-get install moreutils # contains `sponge` required by `reformat-cmake`
sudo pip install cmake-format==0.4.3 pyyaml
+ sudo snap install --classic go
+ export PATH=$PATH:"/snap/bin/go"
+ sudo go get -u github.com/mvdan/sh/cmd/shfmt
fi
#
