From 4d99ce1b65bcbd7d23fc2c02fcd78e05bb553a52 Mon Sep 17 00:00:00 2001 From: Leonardo Di Donato Date: Wed, 26 Feb 2020 17:31:20 +0100 Subject: [PATCH] new(.circleci): run the debug build on centos7 on CI (USE_BUNDLED_DEPS=ON, CMAKE_BUILD_TYPE=debug) Signed-off-by: Leonardo Di Donato --- .circleci/config.yml | 23 +++++++++++++++++++++++ CMakeLists.txt | 1 + 2 files changed, 24 insertions(+) diff --git a/.circleci/config.yml b/.circleci/config.yml index f144f228..228a2c52 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -101,6 +101,28 @@ jobs: - store_artifacts: path: /tmp/packages destination: /packages + # Debug build using our own builder base image using centos 7 + # This build is static, dependencies are bundled in the falco binary + "build/centos7-debug": + docker: + - image: falcosecurity/falco-builder:latest + environment: + BUILD_TYPE: "debug" + steps: + - checkout: + path: /source/falco + - run: + name: Prepare project + command: /usr/bin/entrypoint cmake + - run: + name: Build + command: /usr/bin/entrypoint all + - run: + name: Run unit tests + command: /usr/bin/entrypoint tests + - run: + name: Build packages + command: /usr/bin/entrypoint package # Execute integration tests based on the build results coming from the "build/centos7" job "tests/integration": docker: @@ -157,6 +179,7 @@ workflows: - "build/ubuntu-bionic" - "build/ubuntu-bionic-debug" - "build/centos7" + - "build/centos7-debug" - "tests/integration": requires: - "build/centos7" diff --git a/CMakeLists.txt b/CMakeLists.txt index bef38afe..dcb2bb75 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -48,6 +48,7 @@ else() set(CMAKE_BUILD_TYPE "release") set(KBUILD_FLAGS "${DRAIOS_FEATURE_FLAGS}") endif() +message(STATUS "Build type: ${CMAKE_BUILD_TYPE}") set(CMAKE_COMMON_FLAGS "-Wall -ggdb ${DRAIOS_FEATURE_FLAGS}")