mirror of
https://github.com/gomods/athens
synced 2026-02-10 11:08:10 +00:00
Since CONTRIBUTING.md and DEVELOPMENT.md asks the reader to run 'make setup-dev-env', which runs this script, it needs to be support other platforms besides Linux. Helps #397
27 lines
503 B
Bash
Executable File
27 lines
503 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
|
|
;;
|
|
*)
|
|
go get github.com/gobuffalo/buffalo/buffalo
|
|
;;
|
|
esac
|