-
Notifications
You must be signed in to change notification settings - Fork 17
/
Makefile
67 lines (49 loc) · 1.96 KB
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
test: test-unit test-ssh test-integration
push: test sys-test-local
git push
pre-commit: test sys-test-local
watch:
go run github.com/onsi/ginkgo/v2/ginkgo watch -r -skip-package integration,system,backup,s3-config-validator
test-unit:
go run github.com/onsi/ginkgo/v2/ginkgo -p -r -skip-package integration,system,s3-config-validator,ssh
test-ssh:
go run github.com/onsi/ginkgo/v2/ginkgo -r ssh
test-integration:
go run github.com/onsi/ginkgo/v2/ginkgo -r -trace integration
bin:
go build -o bbr ./cmd/bbr
bin-linux:
GOOS=linux GOARCH=amd64 go build -o bbr ./cmd/bbr
generate-fakes:
go generate ./...
sys-test-director-ci:
TEST_ENV=ci \
go run github.com/onsi/ginkgo/v2/ginkgo -r -v -trace system/director
sys-test-deployment-ci:
TEST_ENV=ci \
go run github.com/onsi/ginkgo/v2/ginkgo -r -v -trace system/deployment
sys-test-windows-ci:
TEST_ENV=ci \
go run github.com/onsi/ginkgo/v2/ginkgo -r -v -trace system/windows
sys-test-all-deployments-ci:
TEST_ENV=ci \
go run github.com/onsi/ginkgo/v2/ginkgo -r -v -trace system/all_deployments
sys-test-bosh-all-proxy-ci:
TEST_ENV=ci \
go run github.com/onsi/ginkgo/v2/ginkgo -r -v -trace system/bosh_all_proxy
upload-test-releases:
fixtures/releases/upload-release redis-test-release && \
fixtures/releases/upload-release many-bbr-jobs-release
release:
go version
mkdir releases
CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build -ldflags "-X main.version=${VERSION}" -o releases/bbr ./cmd/bbr
CGO_ENABLED=0 GOOS=linux GOARCH=arm64 go build -ldflags "-X main.version=${VERSION}" -o releases/bbr-arm64 ./cmd/bbr
GOOS=darwin GOARCH=amd64 go build -ldflags "-X main.version=${VERSION}" -o releases/bbr-mac ./cmd/bbr
GOOS=darwin GOARCH=arm64 go build -ldflags "-X main.version=${VERSION}" -o releases/bbr-mac-arm64 ./cmd/bbr
cd releases && shasum -a 256 * > checksum.sha256
clean-docker:
docker ps -q | xargs -IN -P10 docker kill N
docker ps -a -q | xargs -IN -P10 docker rm N
setup-local-docker:
eval `docker-machine env`