Files
athens/scripts/get_buffalo.sh
Marwan Sulaiman 5449649420 Do not use modules in go get of tools (#690)
* Do not use modules in go get of tools

* temp remove validation

* put back verify minus gofmt

* include module off in list
2018-09-20 13:18:51 -04:00

27 lines
519 B
Bash
Executable File

#!/bin/bash
set -xeo pipefail
case "$TRAVIS" in
true)
VERSION=0.12.4
TAR_GZ="buffalo_${VERSION}_linux_amd64.tar.gz"
URL="https://github.com/gobuffalo/buffalo/releases/download/v${VERSION}/${TAR_GZ}"
TARGET_BIN="$(pwd)/bin/buffalo"
TMPDIR=$(mktemp -d)
(
cd $TMPDIR
curl -L -o ${TAR_GZ} ${URL}
tar -xzf ${TAR_GZ}
mkdir -p $(dirname ${TARGET_BIN})
cp buffalo-no-sqlite ${TARGET_BIN}
chmod +x ${TARGET_BIN}
)
rm -r $TMPDIR
;;
*)
GO111MODULE=off go get github.com/gobuffalo/buffalo/buffalo
;;
esac