Skip to content
This repository was archived by the owner on Nov 7, 2022. It is now read-only.

Commit 66265ea

Browse files
committed
Replace test script with a make target
* Roll out standard Makefile across projects
1 parent 3b766e9 commit 66265ea

3 files changed

Lines changed: 21 additions & 29 deletions

File tree

.travis.yml

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,12 @@
11
language: go
22
go:
3-
- 1.9.x
3+
- "1.9.x"
44
- "1.10.x"
55
- "1.11.x"
6-
- tip
7-
matrix:
8-
allow_failures:
9-
- go: tip
106
install:
117
- go get golang.org/x/lint/golint
128
- go get -v -t ./twitter
139
script:
14-
- ./test
10+
- make
1511
notifications:
1612
email: change

Makefile

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
.PHONY: all
2+
all: test vet lint fmt
3+
4+
.PHONY: test
5+
test:
6+
@go test ./twitter -cover
7+
8+
.PHONY: vet
9+
vet:
10+
@go vet -all ./twitter
11+
12+
.PHONY: lint
13+
lint:
14+
@golint -set_exit_status ./...
15+
16+
.PHONY: fmt
17+
fmt:
18+
@test -z $$(go fmt ./...)
19+

test

Lines changed: 0 additions & 23 deletions
This file was deleted.

0 commit comments

Comments
 (0)