gitlab-ci: Add runner with ThreadSanitizer
authorAndreas Schneider <asn@cryptomilk.org>
Sat, 14 Jan 2023 08:39:44 +0000 (09:39 +0100)
committerAndreas Schneider <asn@samba.org>
Tue, 17 Jan 2023 13:31:10 +0000 (14:31 +0100)
Signed-off-by: Andreas Schneider <asn@cryptomilk.org>
Reviewed-by: Andreas Schneider <asn@samba.org>
.gitlab-ci.yml

index 92e512dd949a4b274d269e22aa935d30b26e8590..b79a8640d389161d4cbf80c7bfce3794d00f6f5a 100644 (file)
@@ -89,6 +89,25 @@ fedora/undefined-sanitizer:
     paths:
       - obj/
 
+fedora/thread-sanitizer:
+  stage: analysis
+  image: $CI_REGISTRY/$BUILD_IMAGES_PROJECT:$TUMBLEWEED_BUILD
+  script:
+    - mkdir -p obj && cd obj && cmake
+      -DCMAKE_BUILD_TYPE=ThreadSanitizer
+      -DPICKY_DEVELOPER=ON
+      -DUNIT_TESTING=ON .. &&
+      make -j$(nproc) && ctest --output-on-failure
+  tags:
+    - shared
+  except:
+    - tags
+  artifacts:
+    expire_in: 1 week
+    when: on_failure
+    paths:
+      - obj/
+
 fedora/csbuild:
   stage: analysis
   variables: