mirror of
https://github.com/rclone/rclone.git
synced 2024-11-26 18:34:41 +01:00
34 lines
502 B
Makefile
34 lines
502 B
Makefile
.DEFAULT_GOAL = check
|
|
|
|
.PHONY: check
|
|
check: generate build lint test docs
|
|
|
|
.PHONY: build
|
|
build:
|
|
./scripts/run.sh go build ./...
|
|
|
|
.PHONY: docs
|
|
docs:
|
|
./scripts/docs.sh
|
|
|
|
.PHONY: download
|
|
download:
|
|
./scripts/run.sh go mod download
|
|
|
|
.PHONY: generate
|
|
generate:
|
|
./scripts/run.sh go generate ./...
|
|
|
|
.PHONY: lint
|
|
lint:
|
|
./scripts/run.sh staticcheck ./...
|
|
./scripts/run.sh golangci-lint -j=2 run
|
|
|
|
.PHONY: tidy
|
|
tidy:
|
|
./scripts/run.sh go mod tidy
|
|
|
|
.PHONY: test
|
|
test:
|
|
./scripts/run.sh go test ./... -count=1
|