Merge pull request #841 from harshavardhana/tests-travis

Run tests only on travis, local builds just do govet, golint and gofmt
master
Harshavardhana 9 years ago
commit 0079849938
  1. 3
      .travis.yml
  2. 5
      Makefile

@ -8,6 +8,9 @@ before_install:
- make - make
- export PATH=$PATH:`pwd` - export PATH=$PATH:`pwd`
- cd .. - cd ..
script:
- make test
- make test GOFLAGS="-race"
sudo: false sudo: false
go: go:
- 1.5.1 - 1.5.1

@ -39,7 +39,10 @@ cyclo:
build: getdeps verifiers build: getdeps verifiers
@echo "Installing minio:" @echo "Installing minio:"
@GO15VENDOREXPERIMENT=1 go generate ./... @GO15VENDOREXPERIMENT=1 go generate ./...
@GO15VENDOREXPERIMENT=1 go test -race github.com/minio/minio/pkg...
test: build
@echo "Running all testing:"
@GO15VENDOREXPERIMENT=1 go test $(GOFLAGS) github.com/minio/minio/pkg...
gomake-all: build gomake-all: build
@GO15VENDOREXPERIMENT=1 go install github.com/minio/minio @GO15VENDOREXPERIMENT=1 go install github.com/minio/minio

Loading…
Cancel
Save