| 1 |
#!/usr/bin/env bash |
| 2 |
|
| 3 |
set -euo pipefail |
| 4 |
|
| 5 |
if ! [[ "$0" =~ "tests/functional/build" ]]; then |
| 6 |
echo "must be run from repository root" |
| 7 |
exit 255 |
| 8 |
fi |
| 9 |
|
| 10 |
( |
| 11 |
cd ./tests |
| 12 |
CGO_ENABLED=0 go build -v -installsuffix cgo -ldflags "-s -w" -o ../bin/etcd-agent ./functional/cmd/etcd-agent |
| 13 |
CGO_ENABLED=0 go build -v -installsuffix cgo -ldflags "-s -w" -o ../bin/etcd-proxy ./functional/cmd/etcd-proxy |
| 14 |
CGO_ENABLED=0 go build -v -installsuffix cgo -ldflags "-s -w" -o ../bin/etcd-runner ./functional/cmd/etcd-runner |
| 15 |
CGO_ENABLED=0 go build -v -installsuffix cgo -ldflags "-s -w" -o ../bin/etcd-tester ./functional/cmd/etcd-tester |
| 16 |
) |