Skip to content

Commit

Permalink
Replace test script with a make target
Browse files Browse the repository at this point in the history
* Roll out standard Makefile across projects
  • Loading branch information
dghubble committed Nov 26, 2018
1 parent 3b766e9 commit 66265ea
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 29 deletions.
8 changes: 2 additions & 6 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,16 +1,12 @@
language: go
go:
- 1.9.x
- "1.9.x"
- "1.10.x"
- "1.11.x"
- tip
matrix:
allow_failures:
- go: tip
install:
- go get golang.org/x/lint/golint
- go get -v -t ./twitter
script:
- ./test
- make
notifications:
email: change
19 changes: 19 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
.PHONY: all
all: test vet lint fmt

.PHONY: test
test:
@go test ./twitter -cover

.PHONY: vet
vet:
@go vet -all ./twitter

.PHONY: lint
lint:
@golint -set_exit_status ./...

.PHONY: fmt
fmt:
@test -z $$(go fmt ./...)

23 changes: 0 additions & 23 deletions test

This file was deleted.

0 comments on commit 66265ea

Please sign in to comment.