Mark more unit tests as 'integration' tests when they rely on external services/docker

This commit is contained in:
Cameron Sparr
2015-08-04 14:52:44 -06:00
parent 06a84def5f
commit 5259c50612
7 changed files with 75 additions and 25 deletions

View File

@@ -1,12 +1,26 @@
UNAME := $(shell sh -c 'uname')
ifeq ($(UNAME), Darwin)
export ADVERTISED_HOST := $(shell sh -c 'boot2docker ip')
endif
ifeq ($(UNAME), Linux)
export ADVERTISED_HOST := localhost
endif
prepare:
go get -d -v -t ./...
docker-compose up -d --no-recreate
docker-compose:
docker-compose up -d
test: prepare docker-compose
go test -v ./...
test-short: prepare
go test -short ./...
go test -v -short ./...
test: prepare
go test ./...
test-cleanup:
docker-compose kill
update:
go get -u -v -d -t ./...