2017-10-05 14:20:47 +00:00
|
|
|
ci: fmt lint test
|
|
|
|
|
|
|
|
fmt:
|
2016-01-21 03:19:15 +00:00
|
|
|
! gofmt -l *.go | read nothing
|
|
|
|
go vet
|
2017-10-05 14:20:47 +00:00
|
|
|
|
|
|
|
lint:
|
2016-01-21 03:19:15 +00:00
|
|
|
go get github.com/golang/lint/golint
|
|
|
|
golint *.go
|
2017-10-05 14:20:47 +00:00
|
|
|
|
|
|
|
test: sysfs/fixtures/.unpacked
|
|
|
|
go test -v ./...
|
|
|
|
|
|
|
|
sysfs/fixtures/.unpacked: sysfs/fixtures.ttar
|
|
|
|
./ttar -C sysfs -x -f sysfs/fixtures.ttar
|
|
|
|
touch $@
|
|
|
|
|
|
|
|
.PHONY: fmt lint test ci
|