Makefile 440 B

12345678910111213141516171819
  1. NAME=logrus-prefixed-formatter
  2. PACKAGES=$(shell go list ./...)
  3. deps:
  4. @echo "--> Installing dependencies"
  5. @go get -d -v -t ./...
  6. test-deps:
  7. @which ginkgo 2>/dev/null ; if [ $$? -eq 1 ]; then \
  8. go get -u -v github.com/onsi/ginkgo/ginkgo; \
  9. fi
  10. test: test-deps
  11. @echo "--> Running tests"
  12. @ginkgo -r --randomizeAllSpecs --randomizeSuites --failOnPending --cover --trace --race
  13. format:
  14. @echo "--> Running go fmt"
  15. @go fmt $(PACKAGES)