The build will now run with multiple processes in order to speed up tests.

This commit is contained in:
Omer Katz 2014-12-24 18:01:55 +02:00
parent fbf5f58864
commit 813219c5df

View File

@ -5,11 +5,12 @@ import pytest
import sys import sys
import os import os
import subprocess import subprocess
import multiprocessing
PYTEST_ARGS = { PYTEST_ARGS = {
'default': ['tests'], 'default': ['tests'],
'fast': ['tests', '-q'], 'fast': ['tests', '-q', '-n %d' % multiprocessing.cpu_count()],
} }
FLAKE8_ARGS = ['rest_framework', 'tests', '--ignore=E501'] FLAKE8_ARGS = ['rest_framework', 'tests', '--ignore=E501']