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.

49 lines
1.3 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/runner
  16. - go get -u forge.chapril.org/armen/workers
  17. - go get -u forge.chapril.org/mls-361/application
  18. - go get -u forge.chapril.org/mls-361/crypto
  19. - go get -u forge.chapril.org/mls-361/errors
  20. - go get -u forge.chapril.org/mls-361/jsonapi
  21. - go get -u forge.chapril.org/mls-361/logger
  22. - go get -u forge.chapril.org/mls-361/uuid
  23. - go mod tidy
  24. lint:
  25. cmds:
  26. - golangci-lint run
  27. test:
  28. cmds:
  29. - go test -cover -v ./...
  30. build:
  31. cmds:
  32. - go build -ldflags "{{.LDFLAGS}}" -o $GOPATH/bin/armen ./cmd/main.go
  33. default:
  34. cmds:
  35. - task: lint
  36. - task: test
  37. - task: build
  38. git:
  39. cmds:
  40. - git add .
  41. - git commit -m "En cours de développement"
  42. - git push