summaryrefslogtreecommitdiff
path: root/.gitlab-ci.yml
diff options
context:
space:
mode:
authorNikos Mavrogiannopoulos <nmav@redhat.com>2016-02-29 13:08:36 +0100
committerNiels Möller <nisse@lysator.liu.se>2016-03-15 19:20:41 +0100
commit89cab502fca9d74031bd264b2eff241a12985466 (patch)
tree29a8cc70de1c0988f71779b759d560ff4df888b4 /.gitlab-ci.yml
parent45a19a4bc6c72c07dcd4cd7e84b2c2bbdb3f60dd (diff)
downloadnettle-89cab502fca9d74031bd264b2eff241a12985466.tar.gz
.gitlab-ci.yml: enhance with builds using asan and ubsan
This allows running the test suite under address sanitizer and undefined sanitizer.
Diffstat (limited to '.gitlab-ci.yml')
-rw-r--r--.gitlab-ci.yml16
1 files changed, 16 insertions, 0 deletions
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 99b241e6..8d44cbb7 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -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