From 86420ba22ed59caa67866316f9937672a5f60d47 Mon Sep 17 00:00:00 2001 From: Boris Faure Date: Sun, 7 Jul 2019 18:14:22 +0200 Subject: [PATCH] circleci: run tests with UndefinedBehaviorSanitizer --- .circleci/config.yml | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) diff --git a/.circleci/config.yml b/.circleci/config.yml index 37f535bb..72761341 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -40,6 +40,31 @@ jobs: meson configure build cd build ninja -j4 + build_and_test_clang_ubsan_efl-1.22: + docker: + - image: borisfaure/terminology-ci:latest + environment: + - CC: clang + - CFLAGS: CFLAGS="-O0 -pipe -g -fno-omit-frame-pointer -fsanitize=undefined -fno-sanitize-recover=undefined" + steps: + - restore_cache: + key: checkout-{{ .Environment.CIRCLE_SHA1 }} + - run: + name: Install EFL + command: apk add /pkg/efl-22/efl-1.22.2-r0.apk /pkg/efl-22/efl-dev-1.22.2-r0.apk + - run: + name: Compile with Clang + command: | + cd /terminology + meson -Dtests=true . build + meson configure build + cd build + ninja -j4 + - run: + name: Launch tests + command: | + cd /terminology + tests/run_tests.sh -v -t build/src/bin/tytest -r tests/tests.results -d tests/ build_full_gcc_efl-1.22: docker: - image: borisfaure/terminology-ci:latest @@ -145,3 +170,6 @@ workflows: - build_full_clang_efl-1.22: requires: - checkout_code + - build_and_test_clang_ubsan_efl-1.22: + requires: + - checkout_code