Makefile 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637
  1. # This Makefile pulls the latest oglematchers (with dependencies),
  2. # rewrites the imports to match this location,
  3. # and ensures that all the tests pass.
  4. # BTW, things used from oglematchers: Contains, Equals, DeepEquals, GreaterThan, LessThan, GreaterOrEqual, LessOrEqual
  5. test:
  6. go test github.com/smartystreets/assertions/...
  7. update: clear clone rewrite trim
  8. clear:
  9. rm -rf ogle*
  10. rm -rf reqtrace
  11. rm -rf go-render
  12. clone:
  13. git clone https://github.com/jacobsa/oglematchers.git && rm -rf oglematchers/.git
  14. git clone https://github.com/luci/go-render.git && rm -rf go-render/.git
  15. rewrite:
  16. grep -rl --exclude Makefile 'github.com/jacobsa' . | xargs sed -i '' 's#github.com/jacobsa#github.com/smartystreets/assertions/internal#g'
  17. trim:
  18. git checkout oglematchers/contains.go # This file diverged at 6acd0337
  19. rm oglematchers/*_test.go
  20. rm oglematchers/any.go
  21. rm oglematchers/all_of.go
  22. rm oglematchers/elements_are.go
  23. rm oglematchers/error.go
  24. rm oglematchers/has_same_type_as.go
  25. rm oglematchers/has_substr.go
  26. rm oglematchers/identical_to.go
  27. rm oglematchers/matches_regexp.go
  28. rm oglematchers/new_matcher.go
  29. rm oglematchers/panics.go
  30. rm oglematchers/pointee.go
  31. rm go-render/render/*_test.go