dobi.yaml 967 B

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  1. meta:
  2. project: gotesttools
  3. mount=source:
  4. bind: .
  5. path: /go/src/gotest.tools
  6. mount=depsources:
  7. bind: ./.depsources
  8. path: /go/pkg/dep/sources
  9. image=builder:
  10. image: gotesttools-dev
  11. context: dobifiles/
  12. dockerfile: Dockerfile
  13. args:
  14. GOLANG_VERSION: '{env.GOLANG_VERSION:}'
  15. image=linter:
  16. image: gotesttools-lint
  17. context: dobifiles/
  18. dockerfile: Dockerfile.lint
  19. job=shell:
  20. use: builder
  21. mounts: [source, depsources]
  22. interactive: true
  23. command: sh
  24. job=watch:
  25. use: builder
  26. mounts: [source]
  27. interactive: true
  28. command: |
  29. filewatcher -x vendor gotestsum -- -test.timeout 10s
  30. env:
  31. - 'GOTESTSUM_FORMAT=short-verbose'
  32. - 'GOTESTTOOLS_DEBUG={env.GOTESTTOOLS_DEBUG:}'
  33. job=test-unit:
  34. use: builder
  35. mounts: [source]
  36. interactive: true
  37. command: scripts/test-unit
  38. job=deps:
  39. use: builder
  40. mounts: [source, depsources]
  41. command: dep ensure
  42. job=lint:
  43. use: linter
  44. mounts: [source]
  45. alias=test:
  46. tasks: [test-unit]