diff --git a/.travis.yml b/.travis.yml new file mode 100644 index 000000000000..cf6a248fdb17 --- /dev/null +++ b/.travis.yml @@ -0,0 +1,6 @@ +sudo: false +language: go +go: + - 1.9.x + - 1.10.x +script: make test diff --git a/Makefile b/Makefile index bbb549a2c7a9..f2241e886d67 100644 --- a/Makefile +++ b/Makefile @@ -1,3 +1,4 @@ test: + go install ./cmd/... golangci-lint run go test -v -race ./... diff --git a/cmd/golangci-lint/main.go b/cmd/golangci-lint/main.go index a13fcc2491aa..6ec42e0c15ce 100644 --- a/cmd/golangci-lint/main.go +++ b/cmd/golangci-lint/main.go @@ -3,7 +3,7 @@ package main import ( "log" - "github.com/golangci/golangci-lint/internal/commands" + "github.com/golangci/golangci-lint/pkg/commands" "github.com/sirupsen/logrus" ) diff --git a/internal/commands/executor.go b/pkg/commands/executor.go similarity index 100% rename from internal/commands/executor.go rename to pkg/commands/executor.go diff --git a/internal/commands/linters.go b/pkg/commands/linters.go similarity index 100% rename from internal/commands/linters.go rename to pkg/commands/linters.go diff --git a/internal/commands/root.go b/pkg/commands/root.go similarity index 100% rename from internal/commands/root.go rename to pkg/commands/root.go diff --git a/internal/commands/run.go b/pkg/commands/run.go similarity index 100% rename from internal/commands/run.go rename to pkg/commands/run.go