You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

47 lines
887 B

3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
  1. version: '3'
  2. silent: true
  3. tasks:
  4. install:
  5. desc: install tools required for development or build
  6. cmds: [ task: install-golangci-lint ]
  7. install-golangci-lint:
  8. desc: install golangci-lint
  9. cmds: [ third_party/golangci-lint/download.sh ]
  10. world:
  11. desc: run - literally - evertyhing ;)
  12. cmds:
  13. - task: format
  14. - task: lint
  15. - task: test
  16. - task: vendor
  17. - task: build
  18. format:
  19. desc: format go-sources
  20. cmds: [ go fmt ./... ]
  21. lint:
  22. desc: lint go-sources
  23. cmds: [ third_party/golangci-lint/golangci-lint run ]
  24. test:
  25. cmds: [ go test ./... ]
  26. build:
  27. desc: build
  28. cmds: [ docker image build -t jaedle/mirror-to-gitea:development -f build/Dockerfile . ]
  29. vendor:
  30. desc: vendor dependencies
  31. cmds:
  32. - go mod tidy
  33. - go mod verify
  34. - go mod vendor
  35. default:
  36. cmds: [ task: world ]