mirror of
https://github.com/woodpecker-ci/woodpecker.git
synced 2024-11-24 08:02:18 +02:00
30 lines
837 B
Plaintext
30 lines
837 B
Plaintext
1. Install go 1.9 or later
|
|
2. Install dependencies
|
|
|
|
go get -u golang.org/x/net/context
|
|
go get -u golang.org/x/net/context/ctxhttp
|
|
go get -u github.com/golang/protobuf/proto
|
|
go get -u github.com/golang/protobuf/protoc-gen-go
|
|
|
|
3. Install binaries to $GOPATH/bin
|
|
|
|
go install github.com/laszlocph/drone-oss-08/cmd/drone-agent
|
|
go install github.com/laszlocph/drone-oss-08/cmd/drone-server
|
|
|
|
---
|
|
|
|
0. To generate SQL files
|
|
|
|
go get github.com/vektra/mockery/.../
|
|
|
|
export download_url=$(curl -s https://api.github.com/repos/go-swagger/go-swagger/releases/latest | \
|
|
jq -r '.assets[] | select(.name | contains("'"$(uname | tr '[:upper:]' '[:lower:]')"'_amd64")) | .browser_download_url')
|
|
curl -o swagger -L'#' "$download_url"
|
|
chmod +x swagger
|
|
sudo mv swagger /usr/local/bin
|
|
|
|
go get github.com/laszlocph/togo
|
|
|
|
go generate
|
|
|