mirror of
https://github.com/lxc/incus.git
synced 2026-02-05 09:46:19 +01:00
tests: Add license check
Signed-off-by: Stéphane Graber <stgraber@stgraber.org>
This commit is contained in:
3
Makefile
3
Makefile
@@ -299,6 +299,9 @@ build-mo: $(MOFILES)
|
||||
|
||||
.PHONY: static-analysis
|
||||
static-analysis:
|
||||
ifeq ($(shell command -v go-licenses),)
|
||||
(cd / ; $(GO) install -v -x github.com/google/go-licenses@latest)
|
||||
endif
|
||||
ifeq ($(shell command -v golangci-lint),)
|
||||
curl -sSfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | sh -s -- -b $$($(GO) env GOPATH)/bin
|
||||
endif
|
||||
|
||||
2
test/lint/licenses.sh
Executable file
2
test/lint/licenses.sh
Executable file
@@ -0,0 +1,2 @@
|
||||
#!/bin/sh -eu
|
||||
go-licenses check ./...
|
||||
Reference in New Issue
Block a user