2013-06-15 14:18:48 +08:00
|
|
|
help:
|
|
|
|
@echo "Available targets:"
|
|
|
|
@echo "- test: run tests"
|
2016-07-27 03:55:16 +08:00
|
|
|
@echo "- deps: installs dependencies with glide"
|
2016-09-28 03:29:47 +08:00
|
|
|
@echo "- watch: watch for changes and re-run tests"
|
2013-06-15 14:18:48 +08:00
|
|
|
|
2016-07-27 03:55:16 +08:00
|
|
|
deps:
|
2016-09-28 04:07:10 +08:00
|
|
|
glide install && mkdir -p vendor/bin && go build -o vendor/bin/ginkgo ./vendor/github.com/onsi/ginkgo/ginkgo
|
2016-09-28 03:46:09 +08:00
|
|
|
|
2013-06-15 14:18:48 +08:00
|
|
|
|
2016-07-27 03:55:16 +08:00
|
|
|
test: deps
|
2016-09-28 03:46:09 +08:00
|
|
|
vendor/bin/ginkgo -race -randomizeAllSpecs -r -skipPackage vendor -progress .
|
2016-09-28 03:29:47 +08:00
|
|
|
|
|
|
|
watch: deps
|
2016-09-28 03:46:09 +08:00
|
|
|
vendor/bin/ginkgo watch -race -randomizeAllSpecs -r -skipPackage vendor -progress -notify .
|