Skip to content
Snippets Groups Projects
Unverified Commit 058e8f0e authored by Oleg Babin's avatar Oleg Babin Committed by Alexander Turenko
Browse files

build: fix static build condition about testing


Before this patch RUN_TESTS condition in Dockerfile.staticbuild was
ignored and always was true.

However adding of brackets solves only part of problem. If RUN_TESTS is
empty `sh -c` returns 1 and build fails.

However if we run tests we should fail build if tests are not passed.
Ternary logic was rewritten to fair if-else.

This patch fixes it and allows build tarantool statically without
running tests.

@Totktonada: Fixed .gitlab.mk to pass RUN_TESTS environment variable to
docker build arguments.

Reviewed-by: default avatarAlexander Turenko <alexander.turenko@tarantool.org>
(cherry picked from commit 8c85dbc7)
parent 6c5b9236
No related branches found
No related tags found
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment