PYTHON ?= python3
IMAGE ?= mishmesh-tests

.PHONY: test test-site test-experiments reproduce docker-build docker-test

test: test-site test-experiments

test-site:
	npm test

test-experiments:
	$(PYTHON) -m unittest discover -s tests -v

reproduce:
	$(PYTHON) scripts/reproduce.py

docker-build:
	docker build -t $(IMAGE) .

docker-test: docker-build
	docker run --rm --network none --read-only --tmpfs /tmp:rw,noexec,nosuid,size=64m $(IMAGE)
