Skip to content
This repository has been archived by the owner on Sep 19, 2024. It is now read-only.

Commit

Permalink
make test - target added
Browse files Browse the repository at this point in the history
  • Loading branch information
r--w committed Oct 12, 2018
1 parent bd7f17d commit 8c8c3b4
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,4 @@ go:
- "1.10"
script:
- make check
- go test -v -race ./...
- make test
4 changes: 3 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ LDFLAGS=-ldflags "-X=main.version=$(VERSION) -X=main.commit=$(BUILD) -X=main.dat
# go source files, ignore vendor directory
SRC = $(shell find . -type f -name '*.go' -not -path "./vendor/*")

.PHONY: all build clean install uninstall fmt simplify check run
.PHONY: all build clean install uninstall fmt simplify check run test

all: check build

Expand All @@ -33,6 +33,8 @@ fmt:
simplify:
@gofmt -s -l -w $(SRC)

test:
@go test -v -race ./...
check:
@go get -u golang.org/x/lint/golint
@test -z $(shell gofmt -l main.go | tee /dev/stderr) || echo "[WARN] Fix formatting issues with 'make fmt'"
Expand Down

0 comments on commit 8c8c3b4

Please sign in to comment.