Skip to content
Snippets Groups Projects
Commit ac97fefb authored by Cameron Sparr's avatar Cameron Sparr
Browse files

makefile: ADVERTISED_HOST needs only be set during docker-compose target

parent 8d034f54
No related branches found
No related tags found
No related merge requests found
......@@ -10,17 +10,14 @@ prepare:
go get github.com/tools/godep
docker-compose:
docker-compose up -d
test:
ifeq ($(UNAME), Darwin)
ADVERTISED_HOST=$(shell sh -c 'boot2docker ip') $(MAKE) test-full
ADVERTISED_HOST=$(shell sh -c 'boot2docker ip') docker-compose up -d
endif
ifeq ($(UNAME), Linux)
ADVERTISED_HOST=localhost $(MAKE) test-full
ADVERTISED_HOST=localhost docker-compose up -d
endif
test-full: prepare docker-compose
test: prepare docker-compose
$(GOPATH)/bin/godep go test -v ./...
test-short: prepare
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment