mirror of
https://github.com/kubescape/kubescape.git
synced 2026-02-14 18:09:55 +00:00
* fixes #964 * adapted build and ci to use build tag * fixup error messages * report git scan skipped warning & version * fixed CI on windows: powershell parsing args... * fixup leftover comment * fixup typo in test message * resolved merge conflicts on unit tests * fix: added gitenabled tag to Makefile target Signed-off-by: Frederic BIDON <fredbi@yahoo.com>
21 lines
347 B
Makefile
21 lines
347 B
Makefile
.PHONY: test all build libgit2
|
|
|
|
# default task invoked while running make
|
|
all: libgit2 build
|
|
|
|
export CGO_ENABLED=1
|
|
|
|
# build and install libgit2
|
|
libgit2:
|
|
-git submodule update --init --recursive
|
|
cd git2go; make install-static
|
|
|
|
# go build tags
|
|
TAGS = "gitenabled,static"
|
|
|
|
build:
|
|
go build -v -tags=$(TAGS) .
|
|
|
|
test:
|
|
go test -v -tags=$(TAGS) ./...
|