chore: add dev-test make target to quickly re-run unit-tests (#539)

Signed-off-by: Andrey Smirnov <smirnov.andrey@gmail.com>
This commit is contained in:
Andrey Smirnov 2019-04-16 00:41:11 +03:00 committed by Andrew Rynhard
parent a817e744c7
commit f9a0f2c785

View File

@ -168,6 +168,14 @@ test: buildkitd
docker run -i --rm $(DOCKER_TEST_ARGS) -v $(PWD)/.artifacts:/src/artifacts autonomy/$@:$(TAG) /bin/test.sh && \
cp ./.artifacts/coverage.txt coverage.txt
dev-test:
@docker run -i --rm $(DOCKER_TEST_ARGS) \
-v $(PWD)/internal:/src/internal:ro \
-v $(PWD)/pkg:/src/pkg:ro \
-v $(PWD)/cmd:/src/cmd:ro \
autonomy/test:$(TAG) \
go test -v ./...
lint: buildkitd
@buildctl --addr $(BUILDKIT_HOST) \
build \