get a stable version of shfmt as per
@@ -16,7 +16,6 @@ env:
- CHECKOUT_ROOT="$HOME/gopath/src/github.com/travis-ci/worker"
- GO15VENDOREXPERIMENT='1'
- REDIS_URL="redis://"
- - SHFMT_URL="mvdan.cc/sh/cmd/shfmt"
addons:
artifacts:
@@ -28,15 +27,12 @@ addons:
- travis-ci/worker/$(git describe --always --dirty --tags)
- travis-ci/worker/$TRAVIS_BRANCH
-before_install:
-- go get -u "${SHFMT_URL}" ;
-
install:
- go get github.com/FiloSottile/gvt
- go get -u github.com/alecthomas/gometalinter
- gometalinter --install
-- git clone --branch v1.3.1 https://github.com/mvdan/sh.git "${GOPATH%%:*}/src/github.com/mvdan/sh"
-- go get github.com/mvdan/sh/...
+- curl -o ~/bin/shfmt -sSL https://github.com/mvdan/sh/releases/download/v2.0.0/shfmt_v2.0.0_linux_amd64
+- chmod +x ~/bin/shfmt
- shfmt -version
- gem install package_cloud --no-ri --no-rdoc
