mirror of
https://github.com/rclone/rclone.git
synced 2024-11-24 17:34:57 +01:00
Factor commands into Makefile
This commit is contained in:
parent
ac3c83f966
commit
96e2271cce
@ -12,12 +12,8 @@ go:
|
|||||||
- tip
|
- tip
|
||||||
|
|
||||||
install:
|
install:
|
||||||
- go get -t ./...
|
- make build_dep
|
||||||
- go get -u github.com/kisielk/errcheck
|
|
||||||
- go get -u golang.org/x/tools/cmd/goimports
|
|
||||||
- go get -u github.com/golang/lint/golint
|
|
||||||
|
|
||||||
script:
|
script:
|
||||||
- make check
|
- make check
|
||||||
- go test ./...
|
- make quicktest
|
||||||
- go test -cpu=2 -race ./...
|
|
||||||
|
18
Makefile
18
Makefile
@ -7,16 +7,34 @@ rclone:
|
|||||||
@go version
|
@go version
|
||||||
go install -v ./...
|
go install -v ./...
|
||||||
|
|
||||||
|
# Full suite of integration tests
|
||||||
test: rclone
|
test: rclone
|
||||||
go test ./...
|
go test ./...
|
||||||
cd fs && go run test_all.go
|
cd fs && go run test_all.go
|
||||||
|
|
||||||
|
# Quick test
|
||||||
|
quicktest:
|
||||||
|
go test ./...
|
||||||
|
go test -cpu=2 -race ./...
|
||||||
|
|
||||||
|
# Do source code quality checks
|
||||||
check: rclone
|
check: rclone
|
||||||
go vet ./...
|
go vet ./...
|
||||||
errcheck ./...
|
errcheck ./...
|
||||||
goimports -d . | grep . ; test $$? -eq 1
|
goimports -d . | grep . ; test $$? -eq 1
|
||||||
golint ./... | grep -E -v '(StorageUrl|CdnUrl)' ; test $$? -eq 1
|
golint ./... | grep -E -v '(StorageUrl|CdnUrl)' ; test $$? -eq 1
|
||||||
|
|
||||||
|
# Get the build dependencies
|
||||||
|
build_dep:
|
||||||
|
go get -t ./...
|
||||||
|
go get -u github.com/kisielk/errcheck
|
||||||
|
go get -u golang.org/x/tools/cmd/goimports
|
||||||
|
go get -u github.com/golang/lint/golint
|
||||||
|
|
||||||
|
# Update dependencies
|
||||||
|
update:
|
||||||
|
go get -t -u -f -v ./...
|
||||||
|
|
||||||
doc: rclone.1 MANUAL.html MANUAL.txt
|
doc: rclone.1 MANUAL.html MANUAL.txt
|
||||||
|
|
||||||
rclone.1: MANUAL.md
|
rclone.1: MANUAL.md
|
||||||
|
@ -8,7 +8,7 @@ Required software for making a release
|
|||||||
* golint - go get github.com/golang/lint
|
* golint - go get github.com/golang/lint
|
||||||
|
|
||||||
Making a release
|
Making a release
|
||||||
* go get -t -u -f -v ./...
|
* make update
|
||||||
* make check
|
* make check
|
||||||
* make test
|
* make test
|
||||||
* make tag
|
* make tag
|
||||||
|
Loading…
Reference in New Issue
Block a user