A FAIRE.
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.

50 lines
1.4 KiB

  1. ## https://taskfile.dev
  2. ##---------------------
  3. version: '3'
  4. vars:
  5. VERSION: 0.0.0
  6. BUILTAT:
  7. sh: date +%s
  8. LDFLAGS: -s -w -X 'main._version={{.VERSION}}' -X 'main._builtAt={{.BUILTAT}}'
  9. tasks:
  10. update:
  11. cmds:
  12. - go get -u forge.chapril.org/armen/jw
  13. - go get -u forge.chapril.org/armen/memory
  14. - go get -u forge.chapril.org/armen/model
  15. - go get -u forge.chapril.org/armen/requestor
  16. - go get -u forge.chapril.org/armen/runner
  17. - go get -u forge.chapril.org/armen/workers
  18. - go get -u forge.chapril.org/mls-361/application
  19. - go get -u forge.chapril.org/mls-361/crypto
  20. - go get -u forge.chapril.org/mls-361/errors
  21. - go get -u forge.chapril.org/mls-361/jsonapi
  22. - go get -u forge.chapril.org/mls-361/logger
  23. - go get -u forge.chapril.org/mls-361/uuid
  24. - go mod tidy
  25. lint:
  26. cmds:
  27. - golangci-lint run
  28. test:
  29. cmds:
  30. - go test -cover -v ./...
  31. build:
  32. cmds:
  33. - go build -ldflags "{{.LDFLAGS}}" -o $GOPATH/bin/armen ./cmd/main.go
  34. default:
  35. cmds:
  36. - task: lint
  37. - task: test
  38. - task: build
  39. git:
  40. cmds:
  41. - git add .
  42. - git commit -m "En cours de développement"
  43. - git push