summaryrefslogtreecommitdiffstats
path: root/scripts/gen_travis.py
diff options
context:
space:
mode:
authorgnzlbg <gonzalobg88@gmail.com>2018-07-10 11:58:37 (GMT)
committerDavid Goldblatt <davidtgoldblatt@gmail.com>2018-08-13 17:59:20 (GMT)
commit36eb0b3d77404f389cfddad6675fe1f479e76be7 (patch)
treeead8c876e13a382d4060a0cda3f35d2117228d61 /scripts/gen_travis.py
parent1f71e1ca4319de7788d53d1d0ba905995c7f52bd (diff)
downloadjemalloc-36eb0b3d77404f389cfddad6675fe1f479e76be7.zip
jemalloc-36eb0b3d77404f389cfddad6675fe1f479e76be7.tar.gz
jemalloc-36eb0b3d77404f389cfddad6675fe1f479e76be7.tar.bz2
Add valgrind build bots to CI
This commit adds two build-bots to CI that test the release builds of jemalloc on linux and macOS under valgrind. The macOS build is not enabled because valgrind reports errors about reads of uninitialized memory in some tests and segfaults in others.
Diffstat (limited to 'scripts/gen_travis.py')
-rwxr-xr-xscripts/gen_travis.py20
1 files changed, 20 insertions, 0 deletions
diff --git a/scripts/gen_travis.py b/scripts/gen_travis.py
index 4473205..743f1e5 100755
--- a/scripts/gen_travis.py
+++ b/scripts/gen_travis.py
@@ -113,8 +113,28 @@ for combination in unusual_combinations_to_test:
# Development build
include_rows += '''\
+ # Development build
- os: linux
env: CC=gcc CXX=g++ COMPILER_FLAGS="" CONFIGURE_FLAGS="--enable-debug --disable-cache-oblivious --enable-stats --enable-log --enable-prof" EXTRA_CFLAGS="-Werror -Wno-array-bounds"
'''
+# Valgrind build bots
+include_rows += '''
+ # Valgrind
+ - os: linux
+ env: CC=gcc CXX=g++ COMPILER_FLAGS="" CONFIGURE_FLAGS="" EXTRA_CFLAGS="-Werror -Wno-array-bounds" JEMALLOC_TEST_PREFIX="valgrind"
+ addons:
+ apt:
+ packages:
+ - valgrind
+'''
+
+# To enable valgrind on macosx add:
+#
+# - os: osx
+# env: CC=gcc CXX=g++ COMPILER_FLAGS="" CONFIGURE_FLAGS="" EXTRA_CFLAGS="-Werror -Wno-array-bounds" JEMALLOC_TEST_PREFIX="valgrind"
+# install: brew install valgrind
+#
+# It currently fails due to: https://github.com/jemalloc/jemalloc/issues/1274
+
print travis_template % include_rows