summaryrefslogtreecommitdiff
path: root/Makefile
blob: 988d3354994ed079bc38b1642d7881ae6977b159 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
IMAGE:=dbscripts/test
RUN_OPTIONS:=--rm --network=none -v $(PWD):/dbscripts:ro --tmpfs=/tmp:exec -w /dbscripts/test

test-image:
	docker build --pull -t $(IMAGE) test

test: test-image
	docker run $(RUN_OPTIONS) $(IMAGE) make test

test-coverage: test-image
	rm -rf ${PWD}/coverage
	mkdir -m 777 ${PWD}/coverage
	docker run  $(RUN_OPTIONS) -v ${PWD}/coverage:/coverage -e COVERAGE_DIR=/coverage $(IMAGE) make test-coverage

.PHONY: test-image test test-coverage