build.yaml 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  1. #
  2. # Build config for ThirdMartini go-builder
  3. #
  4. gobuild.version.required: 1.0
  5. gobuild.work.dir: build
  6. properties:
  7. version: git rev-parse --short=12 HEAD
  8. jobs:
  9. #
  10. # Format source code
  11. format:
  12. - name: Format source code
  13. type: golang
  14. source: git.thirdmartini.com/thirdmartini/vessel/...
  15. options:
  16. flags:
  17. #
  18. # Run some tests
  19. test:
  20. - name: Running unit tests
  21. type: golang
  22. source: git.thirdmartini.com/thirdmartini/vessel/...
  23. options:
  24. flags:
  25. #
  26. # Build binary for different architectures
  27. build:
  28. - name: Build Binaries
  29. type: golang
  30. source: git.thirdmartini.com/thirdmartini/vessel/cmd/vesselcmd
  31. targets:
  32. - artifact: build/vesselcmd
  33. - artifact: build/vesselcmd.arm7.linux
  34. arch: arm
  35. os: linux
  36. model: 7
  37. - artifact: build/vesselcmd.arm64.linux
  38. arch: arm64
  39. os: linux
  40. deploy:
  41. - name: Copy native binaries localy
  42. type: copy
  43. artifact: vesselcmd
  44. targets:
  45. - artifact: build/vesselcmd
  46. options:
  47. source: build/vesselcmd
  48. destination: ~/bin/vesselcmd