WIP: always downloading a fixed buffalo CLI version (#230)

* always downloading a fixed buffalo CLI version

As of this writing, latest is v0.12.3

* moving the buffalo binary to a permitted place

also making the binary executable

* composing buffalo URL with tar_gz env var
This commit is contained in:
Aaron Schlesinger
2018-07-09 14:23:45 -07:00
committed by GitHub
parent c3e3dee4d8
commit 91b4f9c876
2 changed files with 13 additions and 1 deletions
+3 -1
View File
@@ -8,6 +8,7 @@ go:
- "1.10.x"
env:
global:
- PATH=${PATH}:./bin
- POP_PATH=$PWD/cmd/proxy
- GO_ENV=test_postgres
- MINIO_ACCESS_KEY=minio
@@ -19,11 +20,12 @@ script:
- golint -set_exit_status $(go list ./... | grep -v '/mocks') # Linter
- go test -race -coverprofile cover.out -covermode atomic ./... # Run all the tests with the race detector and code coverage enabled
before_script:
- mkdir bin
- GO_FILES=$(find . -iname '*.go' -type f | grep -v /vendor/) # All the .go files, excluding vendor/
- go get github.com/golang/lint/golint
- wget "https://dl.minio.io/server/minio/release/linux-amd64/minio"
- chmod +x minio && nohup ./minio server . &
- go get -u -v github.com/gobuffalo/buffalo/buffalo
- ./scripts/get_buffalo.sh
- go get -u -v golang.org/x/vgo
- buffalo db create
- buffalo db migrate up
+10
View File
@@ -0,0 +1,10 @@
#!/bin/bash
TAR_GZ="buffalo_0.12.3_linux_amd64.tar.gz"
BUFFALO_URL="https://github.com/gobuffalo/buffalo/releases/download/v0.12.3/${TAR_GZ}"
BUFFALO_TARGET_BIN="./bin/buffalo"
curl -L -o ${TAR_GZ} ${BUFFALO_URL}
tar -xvf ${TAR_GZ}
mv buffalo-no-sqlite ${BUFFALO_TARGET_BIN}
chmod +x ${BUFFALO_TARGET_BIN}