diff --git a/.travis.yml b/.travis.yml index 32e2275..0331ee9 100644 --- a/.travis.yml +++ b/.travis.yml @@ -29,7 +29,7 @@ install: script: - go install - - go test -v ./... + - go test -v . ./cmd/rest-server - go run build.go -v -T - diff <(goimports -d *.go) <(printf "") diff --git a/build.go b/build.go index 1de518a..026387d 100644 --- a/build.go +++ b/build.go @@ -46,11 +46,14 @@ import ( // config contains the configuration for the program to build. var config = Config{ - 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" - 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 - MinVersion: GoVersion{Major: 1, Minor: 7, Patch: 0}, // minimum Go version supported + 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" + Main: "github.com/restic/rest-server/cmd/rest-server", // package name for the main package + Tests: []string{ // tests to run + "github.com/restic/rest-server", + "github.com/restic/rest-server/cmd/rest-server", + }, + MinVersion: GoVersion{Major: 1, Minor: 7, Patch: 0}, // minimum Go version supported } // Config configures the build.