mirror of
https://github.com/gomods/athens
synced 2026-02-03 11:00:32 +00:00
* Upgrade buffalo * Switch to go modules everywhere * Fixes from buffalo fix * Add missing modules from module list * Update vendored modules in /vendor * Stop using vendor directory for tests * Check go.mod and go.sum files on verify * Upgrade Buffalo from v0.13.0 to v0.13.1 * Fix test for new Buffalo Allow for new Buffalo code * Add test for endpoint with trailing slash
27 lines
518 B
Bash
Executable File
27 lines
518 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=on go get github.com/gobuffalo/buffalo/buffalo
|
|
;;
|
|
esac
|