Build a static executable
This commit is contained in:
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user