-
-
Notifications
You must be signed in to change notification settings - Fork 601
/
Makefile
54 lines (40 loc) · 1.32 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
VERSION := $(shell git describe --tags | sed -e 's/^v//g' | awk -F "-" '{print $$1}')
ITERATION := $(shell git describe --tags --long | awk -F "-" '{print $$2}')
TESTFOLDERS := $(shell go list ./... | grep -v /misc/)
all: test
test:
go test -count=1 -v $(TESTFOLDERS) -cover -race
test-integration:
go test -count=1 -v $(TESTFOLDERS) -cover -race --tags=integration
generate:
bash misc/scripts/generate.sh
go generate ./...
web:
./misc/scripts/update_web.sh
swagger-web:
make generate
./misc/scripts/update_swagger_web.sh
package:
./misc/scripts/package.sh $(VERSION) $(ITERATION)
packagecloud:
make packagecloud-deb
make packagecloud-rpm
packagecloud-deb:
# PACKAGECLOUD_TOKEN env must be set
package_cloud push FZambia/centrifugo/debian/buster PACKAGES/*.deb
package_cloud push FZambia/centrifugo/debian/bullseye PACKAGES/*.deb
package_cloud push FZambia/centrifugo/debian/bookworm PACKAGES/*.deb
package_cloud push FZambia/centrifugo/ubuntu/bionic PACKAGES/*.deb
package_cloud push FZambia/centrifugo/ubuntu/focal PACKAGES/*.deb
package_cloud push FZambia/centrifugo/ubuntu/jammy PACKAGES/*.deb
packagecloud-rpm:
# PACKAGECLOUD_TOKEN env must be set
package_cloud push FZambia/centrifugo/el/7 PACKAGES/*.rpm
deps:
go mod tidy
local-deps:
go mod tidy
go mod download
go mod vendor
build:
CGO_ENABLED=0 go build