2015-08-04 20:52:44 +00:00
|
|
|
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
|
|
|
|
|
2015-07-06 04:46:43 +00:00
|
|
|
prepare:
|
2015-08-17 16:30:35 +00:00
|
|
|
godep go install ./...
|
2015-08-04 20:52:44 +00:00
|
|
|
|
|
|
|
docker-compose:
|
|
|
|
docker-compose up -d
|
|
|
|
|
|
|
|
test: prepare docker-compose
|
2015-08-17 16:30:35 +00:00
|
|
|
godep go test -v ./...
|
2015-07-06 04:46:43 +00:00
|
|
|
|
2015-08-04 14:58:32 +00:00
|
|
|
test-short: prepare
|
2015-08-17 16:30:35 +00:00
|
|
|
godep go test -v -short ./...
|
2015-07-06 04:46:43 +00:00
|
|
|
|
2015-08-04 20:52:44 +00:00
|
|
|
test-cleanup:
|
|
|
|
docker-compose kill
|
2015-08-04 14:58:32 +00:00
|
|
|
|
2015-07-06 04:46:43 +00:00
|
|
|
.PHONY: test
|