Jobs & Workflows https://armen.surge.sh
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.
 
 
 

51 lines
1.5 KiB

## https://taskfile.dev
##---------------------
version: '3'
vars:
VERSION: 0.0.0
BUILTAT:
sh: date +%s
LDFLAGS: -s -w -X 'main._version={{.VERSION}}' -X 'main._builtAt={{.BUILTAT}}'
tasks:
update:
cmds:
- go get -u forge.chapril.org/armen/jw
- go get -u forge.chapril.org/armen/memory
- go get -u forge.chapril.org/armen/model
- go get -u forge.chapril.org/armen/requestor
- go get -u forge.chapril.org/armen/runner
- go get -u forge.chapril.org/armen/workers
- go get -u forge.chapril.org/mls-361/application
- go get -u forge.chapril.org/mls-361/crypto
- go get -u forge.chapril.org/mls-361/errors
- go get -u forge.chapril.org/mls-361/jsonapi
- go get -u forge.chapril.org/mls-361/logger
- go get -u forge.chapril.org/mls-361/util
- go get -u forge.chapril.org/mls-361/uuid
- go mod tidy
default:
cmds:
- golangci-lint run
- go test -cover -v ./...
- go build -ldflags "{{.LDFLAGS}}" -o $GOPATH/bin/armen ./cmd/main.go
devel:
cmds:
- golangci-lint run --build-tags devel
- go test -tags devel -cover -v ./...
- go build -tags devel -ldflags "{{.LDFLAGS}}" -o $GOPATH/bin/armen ./cmd/main.go
doc:
cmds:
- surge ./doc
git:
cmds:
- git add .
- git commit -m "En cours de développement"
- git push