-
Notifications
You must be signed in to change notification settings - Fork 21
Expand file tree
/
Copy pathMakefile
More file actions
39 lines (30 loc) · 912 Bytes
/
Makefile
File metadata and controls
39 lines (30 loc) · 912 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
.PHONY: build
build:
./build.sh
.PHONY: test
test:
gotestsum -- $$(go list ./... | grep -v e2e-tests) -timeout 30s
go test $$(go list ./... | grep e2e-tests) -timeout 240s
.PHONY: build-docker-test
build-docker-test:
docker build -t docker/lsp:test --target test .
.PHONY: test-docker
test-docker: build-docker-test
docker run --rm -v /var/run/docker.sock:/var/run/docker.sock docker/lsp:test make test
.PHONY: test-docker-disconnected
test-docker-disconnected: build-docker-test
docker run -e DOCKER_NETWORK_NONE=true --rm -v /var/run/docker.sock:/var/run/docker.sock --network none docker/lsp:test make test
.PHONY: lint
lint:
golangci-lint run
.PHONY: install
install:
go install ./cmd/docker-language-server
.PHONY: vendor
vendor:
docker buildx bake vendor
.PHONY: validate-vendor
validate-vendor:
docker buildx bake vendor-validate
.PHONY: validate-all
validate-all: lint validate-vendor