forked from openfaas/faas-cli
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
40 lines (31 loc) · 724 Bytes
/
Makefile
File metadata and controls
40 lines (31 loc) · 724 Bytes
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
GO_FILES?=$$(find . -name '*.go' |grep -v vendor)
TAG?=latest
.PHONY: build
build:
./build.sh
.PHONY: build_redist
build_redist:
./build_redist.sh
.PHONY: build_samples
build_samples:
./build_samples.sh
.PHONY: local-fmt
local-fmt:
gofmt -l -d $(GO_FILES)
.PHONY: local-goimports
local-goimports:
goimports -w $(GO_FILES)
.PHONY: test-unit
test-unit:
go test $(shell go list ./... | grep -v /vendor/ | grep -v /template/ | grep -v build) -cover
ci-armhf-push:
(docker push openfaas/faas-cli:$(TAG)-armhf)
ci-armhf-build:
(./build.sh $(TAG)-armhf)
.PHONY: test-templating
PORT?=38080
FUNCTION?=templating-test-func
FUNCTION_UP_TIMEOUT?=30
.EXPORT_ALL_VARIABLES:
test-templating:
./build_integration_test.sh