From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from smtpng2.m.smailru.net (smtpng2.m.smailru.net [94.100.179.3]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dev.tarantool.org (Postfix) with ESMTPS id DC2B945C305 for ; Mon, 7 Dec 2020 10:51:30 +0300 (MSK) From: sergeyb@tarantool.org Date: Mon, 7 Dec 2020 10:46:57 +0300 Message-Id: <4ba10d3c0b982fbf30d2ccc47008fac91f6727a8.1607326642.git.sergeyb@tarantool.org> In-Reply-To: References: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Subject: [Tarantool-patches] [PATCH 6/6] ci: enable flake8 List-Id: Tarantool development patches List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: tarantool-patches@dev.tarantool.org, lvasiliev@tarantool.org Cc: alexander.turenko@tarantool.org From: Sergey Bronnikov The main reason to enable continuous Python static analysis is checking consistency in using quotes fixed in commit 9f4aca80dafbc8fb0ef8fb306927e78eef7fb3ef ('test: support Python 3 and make quotes use consistent') --- .gitlab-ci.yml | 8 ++++++++ .travis.mk | 12 ++++++++++++ 2 files changed, 20 insertions(+) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 668fc830d..646a6244a 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -192,6 +192,14 @@ luacheck: script: - ${GITLAB_MAKE} test_debian_docker_luacheck +flake8: + <<: *docker_test_definition + stage: static_analysis + tags: + - deploy_test + script: + - ${GITLAB_MAKE} test_debian_docker_flake8 + # Tests out_of_source: diff --git a/.travis.mk b/.travis.mk index 238e31cda..b767e80cd 100644 --- a/.travis.mk +++ b/.travis.mk @@ -114,6 +114,7 @@ $(BIN_DIR)/terraform: # Release configure_debian: + PATH="${PATH}:/root/.local/bin" cmake . -DCMAKE_BUILD_TYPE=RelWithDebInfo -DENABLE_WERROR=ON ${CMAKE_EXTRA_PARAMS} build_debian: configure_debian @@ -209,6 +210,17 @@ test_debian_install_luacheck: test_debian_luacheck: test_debian_install_luacheck configure_debian make luacheck +test_debian_docker_flake8: + docker run -w ${OOS_SRC_PATH} -v ${PWD}:${OOS_SRC_PATH} --privileged \ + --cap-add=sys_nice --network=host -i ${DOCKER_IMAGE_TARANTOOL} \ + make -f .travis.mk test_debian_flake8 + +test_debian_install_flake8: + pip install flake8 flake8-quotes + +test_debian_flake8: test_debian_install_flake8 configure_debian + make flake8 + # Out-Of-Source build build_oos: -- 2.25.1