Skip to content

Commit 032dd9e

Browse files
committed
Add valgrind memcheck test to travis
1 parent 27a430f commit 032dd9e

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

.travis.yml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,8 @@ install:
5555
../configure --disable-fastopen --build `../config.guess` --host aarch64-linux-gnu CC="gcc -B$HOME/linker_bin" CXX="g++ -B$HOME/linker_bin";
5656
elif [ "$CROSS_COMPILE" = "1" ] && [ "$ARM_ARCH_DIR" = "arm-linux-gnueabi" ]; then
5757
../configure --disable-fastopen --build `../config.guess` --host arm-linux-gnueabi;
58+
elif [ "$VALGRIND" = "valgrind" ]; then
59+
../configure --enable-debug --disable-fastopen --disable-valgrind-helgrind --disable-valgrind-drd --disable-valgrind-sgcheck;
5860
else
5961
../configure --disable-fastopen;
6062
fi
@@ -84,6 +86,7 @@ script:
8486
fi
8587
else
8688
make check ;
89+
if [ "$VALGRIND" = "valgrind" ]; then make check-valgrind; fi
8790
cat test/test-suite.log ;
8891
ls -l /usr/local/lib/ ;
8992
ls -l /usr/lib/ ;
@@ -179,6 +182,17 @@ matrix:
179182
- g++-8
180183
env:
181184
- MATRIX_EVAL="CC=gcc-8 && CXX=g++-8"
185+
- os: linux
186+
addons:
187+
apt:
188+
sources:
189+
- ubuntu-toolchain-r-test
190+
packages:
191+
- g++-7
192+
- valgrind
193+
- valgrind-dbg
194+
env:
195+
- MATRIX_EVAL="CC=gcc-7 && CXX=g++-7 && VALGRIND=valgrind"
182196
#- os: osx
183197
# osx_image: xcode8
184198
# env:

0 commit comments

Comments
 (0)