github.com/opentelekomcloud/gophertelekomcloud@v0.9.3/Makefile (about)

     1  export GO111MODULE=on
     2  export PATH:=/usr/local/go/bin:$(PATH)
     3  exec_path := /usr/local/bin/
     4  exec_name := gophertelekomcloud
     5  
     6  
     7  default: test
     8  test: test-unit
     9  acceptance: test-acc
    10  
    11  fmt:
    12  	@echo Running go fmt
    13  	@go fmt
    14  
    15  lint:
    16  	@echo Running go lint
    17  	@golangci-lint run --timeout=300s
    18  
    19  vet:
    20  	@echo "go vet ."
    21  	@go vet ./...
    22  
    23  test-unit:
    24  	@go test ./openstack/... -parallel 4 -v
    25  
    26  test-acc:
    27  	@echo "Starting acceptance tests..."
    28  	@go test ./acceptance/... -race -covermode=atomic -coverprofile=coverage.txt -timeout 20m -v