diff --git a/.travis.yml b/.travis.yml index 6c120531..c70bd123 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,4 +1,6 @@ language: go +script: +- make test GOFLAGS="-race" go: - 1.5.1 sudo: false diff --git a/Makefile b/Makefile index 0edc8264..58a69e54 100644 --- a/Makefile +++ b/Makefile @@ -44,8 +44,11 @@ deadcode: build: getdeps verifiers @echo "Installing mc:" - @GO15VENDOREXPERIMENT=1 go test -race ./ - @GO15VENDOREXPERIMENT=1 go test -race github.com/minio/mc/pkg... + +test: getdeps verifiers + @echo "Running all testing:" + @GO15VENDOREXPERIMENT=1 go test $(GOFLAGS) ./ + @GO15VENDOREXPERIMENT=1 go test $(GOFLAGS) github.com/minio/mc/pkg... gomake-all: build @GO15VENDOREXPERIMENT=1 go install github.com/minio/mc @@ -61,7 +64,7 @@ genversion: @go run genversion.go coverage: - @GO15VENDOREXPERIMENT=1 go test -race -coverprofile=cover.out + @GO15VENDOREXPERIMENT=1 go test -race -coverprofile=cover.out ./ @go tool cover -html=cover.out && echo "Visit your browser" pkg-remove: