Skip to content
Snippets Groups Projects
Select Git revision
  • 0cf3c117f6507cbd78b01910b1d5b614fd0f8df5
  • master default protected
  • 1.31
  • 4.28.0
  • 4.27.0
  • 4.26.0
  • 4.25.5
  • 4.25.4
  • 4.25.3
  • 4.25.2
  • 4.25.1
  • 4.25.0
  • 4.24.3
  • 4.24.2
  • 4.24.1
  • 4.24.0
  • 4.23.6
  • 4.23.5
  • 4.23.4
  • 4.23.3
  • 4.23.2
  • 4.23.1
  • 4.23.0
23 results

test.html

Blame
  • target-go-build.mk 1.73 KiB
    #############################################################################################
    #############################################################################################
    ##
    ## BUILD GO
    ##
    #############################################################################################
    #############################################################################################
    
    ifeq ($(GO),)
      $(error $(ERRORMARKER) Go is not defined, check your Makefile if go.mk is included)
    endif
    
    GO_RELEASE_PACKAGE_NAME ?= main
    
    .PHONY: compile
    ## Compiling for every OS and Platform
    compile: next-patch-version
    	$(ECHOMARKER) "Compiling for every OS and Platform"
    	$(ECHO) "Version: $(PROJECT_VERSION)"
    	$(ECHO) "Build: $(PROJECT_BUILD_DATE)"
    	$(QUIET) $(DEVELOPMENT_SCRIPTS_PATH)/go-compile.sh $(SOURCE_PATH) $(BUILD_PATH) $(COMPONENT_SLUG) $(GO_RELEASE_PACKAGE_NAME) $(PROJECT_VERSION) $(PROJECT_BUILD_DATE)
    
    
    .PHONY: go-lint
    ## Lint the files
    go-lint: 
    	$(QUIET) $(GOLINT) -set_exit_status ${PKG_LIST}
    
    .PHONY: go-test	
    ## Run unittests
    go-test: 
    	$(QUIET) $(GO) test -short ${PKG_LIST}
    
    .PHONY: go-race
    ## Run data race detector
    go-race: go-dep 
    	$(QUIET) $(GO) test -race -short ${PKG_LIST}
    
    .PHONY: go-msan
    ## Run memory sanitizer
    go-msan: go-dep 
    	$(QUIET) $(GO) test -msan -short ${PKG_LIST}
    
    .PHONY: go-coverage
    ## Generate global code coverage report
    go-coverage: 
    	$(QUIET) $(DEVELOPMENT_SCRIPTS_PATH)/go-coverage.sh $(SOURCE_PATH) $(DEVELOPMENT_PATH)/report ;
    
    .PHONY: go-cover-html
    ## Generate global code coverage report in HTML
    go-cover-html: 
    	$(QUIET) $(DEVELOPMENT_SCRIPTS_PATH)/go-coverage.sh $(SOURCE_PATH) $(DEVELOPMENT_PATH)/report html;
    
    .PHONY: go-dep
    ## Get the dependencies
    go-dep:
    	$(QUIET) cd $(SOURCE_PATH); $(GO) get -v -d ./... ; cd -;