forked from cloudfoundry/bosh-backup-and-restore
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
63 lines (46 loc) · 1.43 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
test: test-unit test-integration
push: test sys-test-local
git push
pre-commit: test sys-test-local
watch:
ginkgo watch -r -skipPackage integration,system,backup,s3-config-validator
test-unit:
ginkgo -p -r -skipPackage integration,system,s3-config-validator,ssh
ginkgo -r ssh
test-integration:
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 \
ginkgo -r -v -trace system/director
sys-test-deployment-ci:
TEST_ENV=ci \
ginkgo -r -v -trace system/deployment
sys-test-windows-ci:
TEST_ENV=ci \
ginkgo -r -v -trace system/windows
sys-test-all-deployments-ci:
TEST_ENV=ci \
ginkgo -r -v -trace system/all_deployments
sys-test-bosh-all-proxy-ci:
TEST_ENV=ci \
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
GOOS=darwin GOARCH=amd64 go build -ldflags "-X main.version=${VERSION}" -o releases/bbr-mac ./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`