[tarantool-patches] [PATCH v1] test: add out-of-source build
Alexander V. Tikhonov
avtikhon at tarantool.org
Fri Oct 18 16:50:51 MSK 2019
Added out of source build make targets and added
it with complete testing to gitlab-ci.
---
Github: https://github.com/tarantool/tarantool/tree/avtikhon/out-of-source
.gitlab-ci.yml | 5 +++++
.travis.mk | 14 ++++++++++++++
2 files changed, 19 insertions(+)
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 431730b67..7235e65d6 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -49,6 +49,11 @@ variables:
# Tests
+out_of_source:
+ <<: *docker_test_definition
+ script:
+ - ${GITLAB_MAKE} test_outofsrc_no_deps
+
release:
<<: *docker_test_definition
script:
diff --git a/.travis.mk b/.travis.mk
index 42969ff56..9fb7d5bdd 100644
--- a/.travis.mk
+++ b/.travis.mk
@@ -73,6 +73,20 @@ deps_buster_clang_8: deps_debian
apt-get update
apt-get install -y clang-8 llvm-8-dev
+# Out-of-source build
+
+build_outofsrc:
+ rm -rf build CMakeCache.txt
+ mkdir build
+ cd build && \
+ cmake .. -DCMAKE_BUILD_TYPE=RelWithDebInfo -DENABLE_WERROR=ON ${CMAKE_EXTRA_PARAMS} && \
+ make -j
+
+test_outofsrc_no_deps: build_outofsrc
+ cd build && make test-force $(TEST_RUN_EXTRA_PARAMS)
+
+test_outofsrc: deps_debian test_outofsrc_no_deps
+
# Release
build_debian:
--
2.17.1
More information about the Tarantool-patches
mailing list