Build a static executable

This commit is contained in:
Roberto Abdelkader Martínez Pérez
2019-09-04 16:42:43 +02:00
parent 6affed99c8
commit c8758ec38a
+2 -2
View File
@@ -16,7 +16,7 @@ all: test build
build: deps build: deps
mkdir -p $(BUILD_DIR) mkdir -p $(BUILD_DIR)
$(GOBUILD) -o $(BUILD_DIR)/$(BINARY_NAME) -v CGO_ENABLED=0 $(GOBUILD) -o $(BUILD_DIR)/$(BINARY_NAME) -v
test: build test: build
$(GOTEST) -race -coverprofile=$(TMP_DIR)/c.out ./... $(GOTEST) -race -coverprofile=$(TMP_DIR)/c.out ./...
@@ -26,7 +26,7 @@ coverage: test
$(GOTOOL) cover -html=$(TMP_DIR)/c.out -o $(OUTPUT_DIR)/coverage.html $(GOTOOL) cover -html=$(TMP_DIR)/c.out -o $(OUTPUT_DIR)/coverage.html
install: build install: build
go install ./... CGO_ENABLED=0 go install ./...
acceptance: install acceptance: install
make -C ./spec/test make -C ./spec/test