mirror of
https://github.com/gomods/athens
synced 2026-02-03 14:20:31 +00:00
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:
committed by
GitHub
parent
c3e3dee4d8
commit
91b4f9c876
+3
-1
@@ -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
|
||||
|
||||
Executable
+10
@@ -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}
|
||||
Reference in New Issue
Block a user