1
0
mirror of synced 2026-02-06 10:55:56 +00:00

Add e2e tests for install command

This commit is contained in:
stefanprodan
2020-04-24 19:54:45 +03:00
parent 403a0f2882
commit 35163fa9eb
7 changed files with 90 additions and 9 deletions

View File

@@ -1,9 +1,9 @@
VERSION?=$(shell grep 'VERSION' cmd/tk/main.go | awk '{ print $$4 }' | tr -d '"')
all: tidy fmt vet test build
all: test build
build:
CGO_ENABLED=0 go build -o ./bin/tk ./cmd/tk
tidy:
go mod tidy
fmt:
go fmt ./...
@@ -11,9 +11,11 @@ fmt:
vet:
go vet ./...
tidy:
go mod tidy
test:
test: tidy fmt vet
go test ./... -coverprofile cover.out
build:
CGO_ENABLED=0 go build -o ./bin/tk ./cmd/tk
install:
go install cmd/tk