]> granicus.if.org Git - graphviz/commitdiff
Add ubuntu20-10-cmake-ASan-build job to CI
authorMagnus Jacobsson <Magnus.Jacobsson@berotec.se>
Mon, 12 Apr 2021 05:23:05 +0000 (07:23 +0200)
committerMagnus Jacobsson <Magnus.Jacobsson@berotec.se>
Thu, 22 Apr 2021 05:23:25 +0000 (07:23 +0200)
.gitlab-ci.yml
ci/build.sh

index 4ed9f68d210d9383ca2e509b78b966bbc7d3ff19..4ec25fd9cc8c7d2b6d0e22c3f17eec12992c574c 100644 (file)
@@ -372,6 +372,25 @@ ubuntu20-10-cmake-build:
     variables:
       IMAGE: ubuntu-20.10
 
+ubuntu20-10-cmake-ASan-build:
+    <<: *deb_build_definition
+    needs:
+        - job: docker_build_ubuntu-20.10
+          artifacts: false
+        - job: portable-source
+          artifacts: true
+    before_script:
+        - export build_system="cmake"
+        # fail on any compiler warnings
+        - export CFLAGS=-Werror
+        - export CXXFLAGS=-Werror
+        - export CMAKE_OPTIONS="-Duse_sanitizers=ON"
+        - echo experimental > COLLECTION
+    tags:
+        - linux
+    variables:
+      IMAGE: ubuntu-20.10
+
 centos7-cmake-build:
     <<: *rpm_build_definition
     needs:
index cf8f15a362c33f56f75b6b0f87bcd14d7206f4c5..c01119cf452afdd64e1724f7f8475732ce832263 100755 (executable)
@@ -32,7 +32,7 @@ mkdir -p ${DIR}/source
 if [ "${build_system}" = "cmake" ]; then
     mkdir build
     cd build
-    cmake ..
+    cmake ${CMAKE_OPTIONS} ..
     cmake --build .
     cpack
     cd ..