]> git.ipfire.org Git - thirdparty/nettle.git/commitdiff
.gitlab-ci.yml: enhance with builds using asan and ubsan
authorNikos Mavrogiannopoulos <nmav@redhat.com>
Mon, 29 Feb 2016 12:08:36 +0000 (13:08 +0100)
committerNiels Möller <nisse@lysator.liu.se>
Tue, 15 Mar 2016 18:20:41 +0000 (19:20 +0100)
This allows running the test suite under address sanitizer and undefined
sanitizer.

.gitlab-ci.yml

index 99b241e61b1c9d11869c903a7be80e8326c1ba10..8d44cbb739517a5006a26c00dede0d11dc5e7a46 100644 (file)
@@ -17,3 +17,19 @@ Build and Check (x86):
   - x86
   except:
   - tags
+Build and Check with ubsan:
+  script:
+  - ./.bootstrap && 
+    CXXFLAGS="-fsanitize=undefined -fno-sanitize-recover -g -O2" CFLAGS="-fsanitize=undefined -fno-sanitize-recover -g -O2" ./configure 
+    --disable-documentation && make -j4 && make check -j4
+  tags:
+  - ubsan
+  except:
+  - tags
+Build and Check with asan:
+  script:
+  - ./.bootstrap && 
+  - CXXFLAGS="-fsanitize=address -g -O2" CFLAGS="-fsanitize=address -g -O2" ./configure --disable-documentation &&
+    make -j4 && make check -j4
+  except:
+  - tags