Skip to content

Commit 4c6aecf

Browse files
committed
run valgrind in Travis CI for linux only
1 parent 032c43b commit 4c6aecf

File tree

2 files changed

+3
-0
lines changed

2 files changed

+3
-0
lines changed

.travis.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,8 @@
66
#before_install: sudo apt-get install -y cmake
77
# cmake is pre-installed in Travis for both linux and osx
88

9+
before_install:
10+
- sudo apt-get install -qq valgrind
911
os:
1012
- linux
1113
- osx

travis.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,4 +25,5 @@ make
2525
if [ "$TRAVIS_OS_NAME" != "osx" ]
2626
then
2727
make jsoncpp_check
28+
valgrind --error-exitcode=42 --leak-check=full ./src/test_lib_json/jsoncpp_test
2829
fi

0 commit comments

Comments
 (0)