arnaucube
arnaucube/mirror-to-giteaPublic Self-hosted repository
mirror-to-gitea/vendor/github.com/onsi/gomega/Makefile
vendor/github.com/onsi/gomega/MakefileRaw
 1###### Help ###################################################################
 2
 3.DEFAULT_GOAL = help
 4
 5.PHONY: help
 6
 7help:  ## list Makefile targets
 8	@grep -E '^[a-zA-Z_-]+:.*?## .*$$' $(MAKEFILE_LIST) | sort | awk 'BEGIN {FS = ":.*?## "}; {printf "\033[36m%-30s\033[0m %s\n", $$1, $$2}'
 9
10###### Targets ################################################################
11
12test: version download fmt vet ginkgo ## Runs all build, static analysis, and test steps
13
14download: ## Download dependencies
15	go mod download
16
17vet: ## Run static code analysis
18	go vet ./...
19
20ginkgo: ## Run tests using Ginkgo
21	go run github.com/onsi/ginkgo/ginkgo -p -r --randomizeAllSpecs --failOnPending --randomizeSuites --race
22
23fmt: ## Checks that the code is formatted correcty
24	@@if [ -n "$$(gofmt -s -e -l -d .)" ]; then                   \
25		echo "gofmt check failed: run 'gofmt -s -e -l -w .'"; \
26		exit 1;                                               \
27	fi
28
29docker_test: ## Run tests in a container via docker-compose
30	docker-compose build test && docker-compose run --rm test make test
31
32version: ## Display the version of Go
33	@@go version