Parallelize pytest runs in Makefile

This commit is contained in:
Brad Ison 2018-06-13 12:02:01 -04:00
parent 0501e0b996
commit 5ce15348ea
No known key found for this signature in database
GPG key ID: 972D14B0BE6DE287

View file

@ -43,19 +43,19 @@ conf/stack/license: $(QUAY_CONFIG)/local/license
ln -s $(QUAY_CONFIG)/local/license conf/stack/license ln -s $(QUAY_CONFIG)/local/license conf/stack/license
unit-test: unit-test:
TEST=true PYTHONPATH="." py.test \ TEST=true PYTHONPATH="." py.test -n 2 \
--cov="." --cov-report=html --cov-report=term-missing \ --cov="." --cov-report=html --cov-report=term-missing \
--timeout=3600 --verbose -x \ --timeout=3600 --verbose -x \
./ ./
registry-test: registry-test:
TEST=true PYTHONPATH="." py.test \ TEST=true PYTHONPATH="." py.test -n 2 \
--cov="." --cov-report=html --cov-report=term-missing \ --cov="." --cov-report=html --cov-report=term-missing \
--timeout=3600 --verbose --show-count -x \ --timeout=3600 --verbose --show-count -x \
test/registry/registry_tests.py test/registry/registry_tests.py
registry-test-old: registry-test-old:
TEST=true PYTHONPATH="." py.test \ TEST=true PYTHONPATH="." py.test -n 2 \
--cov="." --cov-report=html --cov-report=term-missing \ --cov="." --cov-report=html --cov-report=term-missing \
--timeout=3600 --verbose --show-count -x \ --timeout=3600 --verbose --show-count -x \
./test/registry_tests.py ./test/registry_tests.py