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.

41 lines
788 B

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: lint
  14. - task: test
  15. - task: vendor
  16. - task: build
  17. test:
  18. cmds: [ go test ./... ]
  19. lint:
  20. desc: lint
  21. cmds: [ third_party/golangci-lint/golangci-lint run ]
  22. build:
  23. desc: build
  24. cmds: [ docker image build -t jaedle/mirror-to-gitea:development -f build/Dockerfile . ]
  25. vendor:
  26. desc: vendor dependencies
  27. cmds:
  28. - go mod tidy
  29. - go mod verify
  30. - go mod vendor
  31. default:
  32. cmds: [ task: world ]