-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathMakefile
28 lines (20 loc) · 953 Bytes
/
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
all: build-win build-lin build-darwin
build-win:
GOOS=windows GOARCH=amd64 go build -o ./bin/win/amd64/cloudsync.exe ./cmd/cli/main.go
GOOS=windows GOARCH=arm64 go build -o ./bin/win/arm64/cloudsync.exe ./cmd/cli/main.go
build-lin:
GOOS=linux GOARCH=amd64 go build -o ./bin/lin/amd64/cloudsync ./cmd/cli/main.go
GOOS=linux GOARCH=arm64 go build -o ./bin/lin/arm64/cloudsync ./cmd/cli/main.go
build-darwin:
GOOS=darwin GOARCH=amd64 go build -o ./bin/darwin/amd64/cloudsync ./cmd/cli/main.go
GOOS=darwin GOARCH=arm64 go build -o ./bin/darwin/arm64/cloudsync ./cmd/cli/main.go
test:
go test ./... -v --cover
test-cov:
go test ./... -coverprofile coverage.out . && go tool cover -html=coverage.out
cloud-plan:
cd ./deployments/terraform/workspaces/$(stage) && terraform plan
cloud-deploy:
cd ./deployments/terraform/workspaces/$(stage) && terraform apply
cloud-destroy:
cd ./deployments/terraform/workspaces/$(stage) && terraform destroy