|
- VIRTUALENV?=python3 -m venv
- MODULES=medashare
-
- test: fixtures/sample.data.sqlite3 fixtures/sample.persona.pasn1 fixtures/sample.mtree
- (. ./p/bin/activate && \
- ((find fixtures -type f; find $(MODULES) -type f) | entr sh -c 'python3 -m coverage run -m unittest --failfast $(MODULES).tests && coverage report -m --omit=p/\*'))
-
- env:
- $(VIRTUALENV) p
- (. ./p/bin/activate && \
- pip install -r requirements.txt)
-
- fixtures/sample.data.sqlite3 fixtures/sample.persona.pasn1: fixtures/genfixtures.py
- (. ./p/bin/activate && cd fixtures && PYTHONPATH=.. python3 genfixtures.py )
-
- fixtures/sample.mtree: fixtures/mtree.dir
- bsdtar -cf - --format mtree --options='!all,time,sha512,size,indent' -C fixtures/mtree.dir . > $@
|