From: "Alexander V. Tikhonov" <avtikhon@tarantool.org> To: sergeyb@tarantool.org Cc: tarantool-patches@dev.tarantool.org Subject: Re: [Tarantool-patches] [PATCH v5 02/10] gitlab-ci: enable static analysis with luacheck Date: Wed, 13 May 2020 17:15:20 +0300 [thread overview] Message-ID: <20200513141520.GA31843@hpalx> (raw) In-Reply-To: <f0a3462530fc6ab517cc8bd8569d3620bc5b48eb.1589275364.git.sergeyb@tarantool.org> Hi Sergey, thanks for the patch, just minor suggestion on your discretion below, LGTM. On Tue, May 12, 2020 at 12:49:55PM +0300, sergeyb@tarantool.org wrote: > From: Sergey Bronnikov <sergeyb@tarantool.org> > > Closes #4681 > --- > .gitlab-ci.yml | 11 +++++++++++ > .travis.mk | 17 +++++++++++++++++ > 2 files changed, 28 insertions(+) > > diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml > index b3b07dac5..9c4ca57cf 100644 > --- a/.gitlab-ci.yml > +++ b/.gitlab-ci.yml > @@ -1,4 +1,5 @@ > stages: > + - static_analysis > - test > - perf > - cleanup > @@ -96,6 +97,16 @@ variables: > script: > - ${GITLAB_MAKE} perf_run > > +# Static Analysis > + > +luacheck: > + <<: *docker_test_definition > + stage: static_analysis > + tags: > + - deploy_test > + script: > + - ${GITLAB_MAKE} test_debian_docker_luacheck > + > # Tests > > release: > diff --git a/.travis.mk b/.travis.mk > index 8aa0e6116..3c8e627d0 100644 > --- a/.travis.mk > +++ b/.travis.mk > @@ -6,6 +6,8 @@ DOCKER_IMAGE?=packpack/packpack:debian-stretch > TEST_RUN_EXTRA_PARAMS?= > MAX_FILES?=65534 > MAX_PROC?=2500 > +LANES_ROCKSPEC="https://luarocks.org/manifests/benoitgermain/lanes-3.13.0-0.rockspec" > +OOS_SRC_PATH="/source" > > all: package > > @@ -146,6 +148,21 @@ test_static_build: deps_debian_static > test_static_docker_build: > docker build --no-cache --network=host --build-arg RUN_TESTS=ON -f Dockerfile.staticbuild . > > +# ################### > +# Static Analysis > +# ################### > + > +test_debian_docker_luacheck: > + docker run -w ${OOS_SRC_PATH} -v ${PWD}:${OOS_SRC_PATH} --privileged --cap-add=sys_nice \ > + --network=host -i registry.gitlab.com/tarantool/tarantool/testing/debian-stretch:latest \ May be better to split lines to make them not longer than 80 characters. Also let's move the image name to the top of the file at the environment variable. > + make -f .travis.mk test_debian_luacheck > + > +test_debian_luacheck: > + apt update -y > + apt install -y lua5.1 luarocks > + luarocks install luacheck > + luacheck --codes --config .luacheckrc . > + > ####### > # OSX # > ####### > -- > 2.23.0 >
next prev parent reply other threads:[~2020-05-13 14:15 UTC|newest] Thread overview: 39+ messages / expand[flat|nested] mbox.gz Atom feed top 2020-05-12 9:49 [Tarantool-patches] [PATCH v5 00/10] Add " sergeyb 2020-05-12 9:49 ` [Tarantool-patches] [PATCH v5 01/10] Add initial luacheck config sergeyb 2020-05-26 22:15 ` Igor Munkin 2020-05-28 15:31 ` Sergey Bronnikov 2020-05-28 16:07 ` Sergey Bronnikov 2020-05-29 11:20 ` Igor Munkin 2020-11-10 14:30 ` Sergey Bronnikov 2020-11-10 14:49 ` Igor Munkin 2020-05-12 9:49 ` [Tarantool-patches] [PATCH v5 02/10] gitlab-ci: enable static analysis with luacheck sergeyb 2020-05-13 14:15 ` Alexander V. Tikhonov [this message] 2020-05-13 14:40 ` Sergey Bronnikov 2020-05-26 22:39 ` Igor Munkin 2020-05-28 10:03 ` Sergey Bronnikov 2020-05-12 9:49 ` [Tarantool-patches] [PATCH v5 03/10] Fix luacheck warnings in extra/dist/tarantoolctl.in sergeyb 2020-05-26 23:11 ` Igor Munkin 2020-05-28 10:13 ` Sergey Bronnikov 2020-05-12 9:49 ` [Tarantool-patches] [PATCH v5 04/10] Fix luacheck warnings in src/lua/ sergeyb 2020-05-27 11:22 ` Igor Munkin 2020-05-28 12:22 ` Sergey Bronnikov 2020-05-12 9:50 ` [Tarantool-patches] [PATCH v5 05/10] " sergeyb 2020-05-13 11:13 ` Sergey Bronnikov 2020-05-27 11:22 ` Igor Munkin 2020-05-12 9:50 ` [Tarantool-patches] [PATCH v5 06/10] Fix luacheck warnings in src/box/lua/ sergeyb 2020-05-27 16:54 ` Igor Munkin 2020-05-28 15:16 ` Sergey Bronnikov 2020-05-12 9:50 ` [Tarantool-patches] [PATCH v5 07/10] " sergeyb 2020-05-13 11:14 ` Sergey Bronnikov 2020-05-27 16:54 ` Igor Munkin 2020-05-28 11:19 ` Sergey Bronnikov 2020-05-12 9:50 ` [Tarantool-patches] [PATCH v5 08/10] Fix luacheck warnings in test/ sergeyb 2020-05-29 11:08 ` Igor Munkin 2020-05-29 14:08 ` Sergey Bronnikov 2020-05-12 9:50 ` [Tarantool-patches] [PATCH v5 09/10] Add luacheck supressions for luajit tests sergeyb 2020-05-26 20:45 ` Igor Munkin 2020-05-28 19:25 ` Sergey Bronnikov 2020-05-12 12:28 ` [Tarantool-patches] [PATCH 10/10] build: Enable 'make luacheck' target Sergey Bronnikov 2020-05-26 20:45 ` Igor Munkin 2020-05-28 9:59 ` Sergey Bronnikov 2020-05-26 20:38 ` [Tarantool-patches] [PATCH v5 11/10] test: fix warnings spotted by luacheck sergeyb
Reply instructions: You may reply publicly to this message via plain-text email using any one of the following methods: * Save the following mbox file, import it into your mail client, and reply-to-all from there: mbox Avoid top-posting and favor interleaved quoting: https://en.wikipedia.org/wiki/Posting_style#Interleaved_style * Reply using the --to, --cc, and --in-reply-to switches of git-send-email(1): git send-email \ --in-reply-to=20200513141520.GA31843@hpalx \ --to=avtikhon@tarantool.org \ --cc=sergeyb@tarantool.org \ --cc=tarantool-patches@dev.tarantool.org \ --subject='Re: [Tarantool-patches] [PATCH v5 02/10] gitlab-ci: enable static analysis with luacheck' \ /path/to/YOUR_REPLY https://kernel.org/pub/software/scm/git/docs/git-send-email.html * If your mail client supports setting the In-Reply-To header via mailto: links, try the mailto: link
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox