Files
telegraf/Makefile
Cameron Sparr 4e3213f3bd godep: vendor all dependencies & add circle-test.sh
Vendor dependencies and use circle-test.sh to run CI process, because
the CircleCI autobuild operations are not compatible with using godep.
2015-08-17 17:38:44 -06:00

26 lines
417 B
Makefile

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:
godep go install ./...
docker-compose:
docker-compose up -d
test: prepare docker-compose
godep go test -v ./...
test-short: prepare
godep go test -v -short ./...
test-cleanup:
docker-compose kill
.PHONY: test