git-sig/Makefile

34 lines
562 B
Makefile
Raw Normal View History

2020-11-19 21:40:38 +00:00
.PHONY: test
2020-11-18 23:23:15 +00:00
test: test-image
docker run \
--rm \
--interactive \
--volume $(PWD)/:/home/test/sig \
2020-11-18 23:23:15 +00:00
local/sig-test \
bats sig/test/test.bats
2020-11-18 23:23:15 +00:00
2020-11-19 21:40:38 +00:00
.PHONY: lint
lint: test-image
docker run \
--rm \
--interactive \
--volume $(PWD)/:/home/test/sig \
local/sig-test \
shellcheck sig/sig
2020-11-18 23:23:15 +00:00
.PHONY: test-image
test-image:
docker build \
--tag local/sig-test \
--file $(PWD)/test/Dockerfile \
$(PWD)
2020-11-19 21:40:38 +00:00
.PHONY: test-shell
test-shell: test-image
2020-11-18 23:23:15 +00:00
docker run \
--rm \
--interactive \
--volume $(PWD)/:/home/test/sig \
2020-11-18 23:23:15 +00:00
local/sig-test \
bash