2016-09-21 12:02:15 +03:00
|
|
|
#!/usr/bin/env bash
|
|
|
|
|
2018-04-09 17:09:48 +03:00
|
|
|
if ! [[ "$0" =~ "functional/build" ]]; then
|
2018-04-09 00:57:25 +03:00
|
|
|
echo "must be run from repository root"
|
|
|
|
exit 255
|
2016-09-21 12:02:15 +03:00
|
|
|
fi
|
|
|
|
|
2018-04-11 11:07:34 +03:00
|
|
|
CGO_ENABLED=0 go build -v -installsuffix cgo -ldflags "-s" -o ./bin/etcd-agent ./functional/cmd/etcd-agent
|
|
|
|
CGO_ENABLED=0 go build -v -installsuffix cgo -ldflags "-s" -o ./bin/etcd-proxy ./functional/cmd/etcd-proxy
|
|
|
|
CGO_ENABLED=0 go build -v -installsuffix cgo -ldflags "-s" -o ./bin/etcd-runner ./functional/cmd/etcd-runner
|
|
|
|
CGO_ENABLED=0 go build -v -installsuffix cgo -ldflags "-s" -o ./bin/etcd-tester ./functional/cmd/etcd-tester
|