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.
 
 

37 lines
838 B

## 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:
lint:
cmds:
- golangci-lint run
test:
cmds:
- go test -cover -v ./...
build:
cmds:
- go build -ldflags "{{.LDFLAGS}}" -o $GOPATH/bin/armen ./cmd/main.go
default:
cmds:
- task: lint
- task: test
- task: build
update:
cmds:
- go get -u forge.chapril.org/armen/armen-sdk
- go get -u forge.chapril.org/armen/armen-jw
- go get -u forge.chapril.org/armen/armen-namespace
- go get -u forge.chapril.org/armen/armen-workers
- go mod tidy