Add tests only in travis-ci

This commit is contained in:
Harshavardhana
2015-09-17 22:52:58 -07:00
parent 2a99791c71
commit 12fa13ef0f
2 changed files with 8 additions and 3 deletions
+2
View File
@@ -1,4 +1,6 @@
language: go
script:
- make test GOFLAGS="-race"
go:
- 1.5.1
sudo: false
+6 -3
View File
@@ -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: