Makefile 323 B

12345678910111213141516
  1. regenerate:
  2. go install github.com/goccmack/gocc
  3. gocc -zip -o ./internal/ dot.bnf
  4. find . -type f -name '*.go' | xargs goimports -w
  5. test:
  6. go test ./...
  7. travis:
  8. make regenerate
  9. go build ./...
  10. go test ./...
  11. errcheck -ignore 'fmt:[FS]?[Pp]rint*' ./...
  12. gofmt -l -s -w .
  13. golint -set_exit_status
  14. git diff --exit-code