2022-10-22 16:46:49 -04:00
|
|
|
#!/usr/bin/env bash
|
|
|
|
|
|
2022-11-08 23:53:25 -05:00
|
|
|
install-go-devtools() {
|
|
|
|
|
go install github.com/go-delve/delve/cmd/dlv@latest
|
|
|
|
|
go install honnef.co/go/tools/cmd/staticcheck@latest
|
2024-01-17 02:28:36 -05:00
|
|
|
go install github.com/golangci/golangci-lint/cmd/golangci-lint@latest
|
2022-11-08 23:53:25 -05:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
setup-ci() {
|
|
|
|
|
local dokku_root="/root/go/src/github.com/dokku/dokku"
|
|
|
|
|
pushd "$plugin_root" >/dev/null || true
|
|
|
|
|
make ci-dependencies setup-deploy-tests
|
|
|
|
|
popd >/dev/null || true
|
|
|
|
|
}
|
|
|
|
|
|
2023-02-11 06:24:27 -05:00
|
|
|
main() {
|
2022-11-08 23:53:25 -05:00
|
|
|
install-go-devtools
|
|
|
|
|
setup-ci
|
|
|
|
|
}
|
|
|
|
|
|
2022-10-22 16:46:49 -04:00
|
|
|
main "$@"
|