|
@@ -166,11 +166,19 @@ dummy-plugin_static:goversion
|
|
testclean: bats-clean
|
|
testclean: bats-clean
|
|
@$(RM) pkg/apiserver/ent $(WIN_IGNORE_ERR)
|
|
@$(RM) pkg/apiserver/ent $(WIN_IGNORE_ERR)
|
|
@$(RM) pkg/cwhub/hubdir $(WIN_IGNORE_ERR)
|
|
@$(RM) pkg/cwhub/hubdir $(WIN_IGNORE_ERR)
|
|
|
|
+ @$(RM) pkg/cwhub/install $(WIN_IGNORE_ERR)
|
|
|
|
+ @$(RM) pkg/types/example.txt $(WIN_IGNORE_ERR)
|
|
|
|
|
|
.PHONY: test
|
|
.PHONY: test
|
|
|
|
+test: export AWS_ENDPOINT_FORCE=http://localhost:4566
|
|
test: goversion
|
|
test: goversion
|
|
|
|
+ @echo NOTE: You need Docker, docker-compose and run \"make localstack\" in a separate shell
|
|
$(GOTEST) $(LD_OPTS) ./...
|
|
$(GOTEST) $(LD_OPTS) ./...
|
|
|
|
|
|
|
|
+.PHONY: localstack
|
|
|
|
+localstack:
|
|
|
|
+ docker-compose -f tests/localstack/docker-compose.yml up
|
|
|
|
+
|
|
package-common:
|
|
package-common:
|
|
@echo "Building Release to dir $(RELDIR)"
|
|
@echo "Building Release to dir $(RELDIR)"
|
|
@$(MKDIR) $(RELDIR)/cmd/crowdsec
|
|
@$(MKDIR) $(RELDIR)/cmd/crowdsec
|
|
@@ -227,4 +235,4 @@ windows_installer: build
|
|
chocolatey: windows_installer
|
|
chocolatey: windows_installer
|
|
@.\make_chocolatey.ps1 -version $(BUILD_VERSION)
|
|
@.\make_chocolatey.ps1 -version $(BUILD_VERSION)
|
|
|
|
|
|
-include tests/bats.mk
|
|
|
|
|
|
+include tests/bats.mk
|