-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathMakefile
More file actions
38 lines (29 loc) · 782 Bytes
/
Makefile
File metadata and controls
38 lines (29 loc) · 782 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
.PHONY: test test-it test-smoke test-in-docker dev build build-hlctl pushbuild clean
# Run unit tests
test:
go test ./...
# Run integration tests
test-it:
go test -tags=integration ./...
# Run smoke tests
test-smoke:
go test -count=1 -tags=smoke ./test/smoke/...
# Run tests in Docker
test-in-docker:
docker build -f dockers/DockerTestfile -t hostlink-test --progress plain --no-cache --target run-test-stage .
# Run development server
dev:
go run ./...
# Build main binary
build:
go build -o bin/hostlink
# Build hlctl binary
build-hlctl:
go build -o bin/hlctl ./cmd/hlctl
# Build and push to remote server
pushbuild:
GOOS=linux GOARCH=amd64 go build -o hostlink . && scp -O hostlink hlink:~
# Clean build artifacts
clean:
rm -rf bin/
rm -f cmd/hlctl/hlctl-test