Skip to content

Commit

Permalink
[test] use all the available cores to run pylint
Browse files Browse the repository at this point in the history
  • Loading branch information
Gyorgy Orban committed Jul 21, 2020
1 parent 29c2e79 commit 6248ba8
Show file tree
Hide file tree
Showing 9 changed files with 10 additions and 10 deletions.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -200,7 +200,7 @@ clean_travis:

PYLINT_CMD = $(MAKE) -C $(CC_ANALYZER) pylint && \
$(MAKE) -C $(CC_WEB) pylint && \
pylint ./bin/** ./codechecker_common \
pylint -j0 ./bin/** ./codechecker_common \
./scripts/** ./scripts/build/** ./scripts/debug_tools/** \
./scripts/gerrit_jenkins/** ./scripts/resources/** \
./scripts/test/** \
Expand Down
2 changes: 1 addition & 1 deletion analyzer/tests/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ pycodestyle_in_env: venv_dev

PYLINT_TEST_CMD = $(MAKE) -C $(CURRENT_DIR)/tools/merge_clang_extdef_mappings pylint && \
$(MAKE) -C $(CURRENT_DIR)/tools/statistics_collector pylint && \
PYLINTRC=$(ROOT)/.pylintrc pylint ./bin/** ./codechecker_analyzer ./tests/**
PYLINTRC=$(ROOT)/.pylintrc pylint -j0 ./bin/** ./codechecker_analyzer ./tests/**

pylint:
$(PYLINT_TEST_CMD)
Expand Down
2 changes: 1 addition & 1 deletion analyzer/tools/merge_clang_extdef_mappings/tests/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ pycodestyle_in_env: venv_dev
$(ACTIVATE_DEV_VENV) && $(PYCODESTYLE_TEST_CMD)

PYLINT_TEST_CMD = PYLINTRC=$(ROOT)/.pylintrc \
pylint ./codechecker_merge_clang_extdef_mappings ./tests/**
pylint -j0 ./codechecker_merge_clang_extdef_mappings ./tests/**

pylint:
$(PYLINT_TEST_CMD)
Expand Down
2 changes: 1 addition & 1 deletion analyzer/tools/statistics_collector/tests/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ pycodestyle_in_env: venv_dev
$(ACTIVATE_DEV_VENV) && $(PYCODESTYLE_TEST_CMD)

PYLINT_TEST_CMD = PYLINTRC=$(ROOT)/.pylintrc \
pylint ./codechecker_statistics_collector ./tests/**
pylint -j0 ./codechecker_statistics_collector ./tests/**

pylint:
$(PYLINT_TEST_CMD)
Expand Down
4 changes: 2 additions & 2 deletions tools/codechecker_report_hash/tests/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ pycodestyle_in_env: venv_dev
$(ACTIVATE_DEV_VENV) && $(PYCODESTYLE_TEST_CMD)

PYLINT_TEST_CMD = PYLINTRC=$(ROOT)/.pylintrc \
pylint ./codechecker_report_hash ./tests/**
pylint -j0 ./codechecker_report_hash ./tests/**

pylint:
$(PYLINT_TEST_CMD)
Expand All @@ -36,4 +36,4 @@ test_unit:
$(UNIT_TEST_CMD)

test_unit_in_env: venv_dev
$(ACTIVATE_DEV_VENV) && $(UNIT_TEST_CMD)
$(ACTIVATE_DEV_VENV) && $(UNIT_TEST_CMD)
2 changes: 1 addition & 1 deletion tools/plist_to_html/tests/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ pycodestyle:
pycodestyle_in_env: venv_dev
$(ACTIVATE_DEV_VENV) && $(PYCODESTYLE_TEST_CMD)

PYLINT_TEST_CMD = pylint ./plist_to_html ./tests \
PYLINT_TEST_CMD = pylint -j0 ./plist_to_html ./tests \
--disable=all \
--enable=logging-format-interpolation,old-style-class,unused-import,unused-variable,len-as-condition,bad-indentation

Expand Down
2 changes: 1 addition & 1 deletion tools/report-converter/tests/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ pycodestyle_in_env: venv_dev
$(ACTIVATE_DEV_VENV) && $(PYCODESTYLE_TEST_CMD)

PYLINT_TEST_CMD = PYLINTRC=$(ROOT)/.pylintrc \
pylint ./codechecker_report_converter ./tests/**
pylint -j0 ./codechecker_report_converter ./tests/**

pylint:
$(PYLINT_TEST_CMD)
Expand Down
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
all:
pylint -f json files/simple.py | python -m json.tool > ./simple.json
pylint -j0 -f json files/simple.py | python -m json.tool > ./simple.json
2 changes: 1 addition & 1 deletion web/tests/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ pycodestyle_in_env: venv_dev
$(ACTIVATE_DEV_VENV) && $(PYCODESTYLE_TEST_CMD)

PYLINT_TEST_CMD = PYLINTRC=$(ROOT)/.pylintrc \
pylint ./bin/** \
pylint -j0 ./bin/** \
./codechecker_web \
./client/bin/** ./client/codechecker_client \
./server/bin/** ./server/codechecker_server ./server/tests/unit \
Expand Down

0 comments on commit 6248ba8

Please sign in to comment.