magefile.go 505 B

123456789101112131415161718192021222324
  1. package main
  2. import (
  3. "github.com/magefile/mage/sh"
  4. )
  5. var (
  6. Default = Build // nolint: deadcode
  7. )
  8. // Generate generates mock implementations of interfaces.
  9. func Generate() (err error) { // nolint: deadcode
  10. return sh.RunV("cmg", "gen", "./...")
  11. }
  12. // Build builds the binaries.
  13. func Build() error { // nolint: deadcode
  14. return sh.RunV("go", "build", "./cmd/presence")
  15. }
  16. // Test runs the test suite.
  17. func Test() error { // nolint: deadcode
  18. return sh.RunV("go", "test", "-cover", "-race", "./...")
  19. }