mirror of
https://github.com/restic/rest-server.git
synced 2025-10-19 15:43:21 +00:00
Fix tests on Travis
This commit is contained in:
parent
4019e3f45e
commit
cda126a99c
2 changed files with 2 additions and 2 deletions
|
@ -27,7 +27,7 @@ install:
|
||||||
|
|
||||||
script:
|
script:
|
||||||
- go install
|
- go install
|
||||||
- go test -v .
|
- go test -v ./...
|
||||||
- go run build.go -v -T
|
- go run build.go -v -T
|
||||||
- diff <(goimports -d *.go) <(printf "")
|
- diff <(goimports -d *.go) <(printf "")
|
||||||
|
|
||||||
|
|
2
build.go
2
build.go
|
@ -49,7 +49,7 @@ var config = Config{
|
||||||
Name: "rest-server", // name of the program executable and directory
|
Name: "rest-server", // name of the program executable and directory
|
||||||
Namespace: "github.com/restic/rest-server", // subdir of GOPATH, e.g. "github.com/foo/bar"
|
Namespace: "github.com/restic/rest-server", // subdir of GOPATH, e.g. "github.com/foo/bar"
|
||||||
Main: "github.com/restic/rest-server/cmd/rest-server", // package name for the main package
|
Main: "github.com/restic/rest-server/cmd/rest-server", // package name for the main package
|
||||||
Tests: []string{"github.com/restic/rest-server"}, // tests to run
|
Tests: []string{"github.com/restic/rest-server/..."}, // tests to run
|
||||||
MinVersion: GoVersion{Major: 1, Minor: 7, Patch: 0}, // minimum Go version supported
|
MinVersion: GoVersion{Major: 1, Minor: 7, Patch: 0}, // minimum Go version supported
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue