add valgrind tests (#33)

* add valgrind

* install valgrind
This commit is contained in:
Philipp Moritz
2016-10-05 16:09:40 -07:00
committed by Robert Nishihara
parent 4204500d23
commit 75441a180d
2 changed files with 16 additions and 0 deletions
+9
View File
@@ -28,6 +28,15 @@ matrix:
install: []
script:
- .travis/check-git-clang-format-output.sh
- os: linux
dist: trusty
python: "2.7"
env: VALGRIND=1
before_install:
- sudo apt-get update -qq
- sudo apt-get install -qq valgrind
script:
- make valgrind
install:
- ./install-dependencies.sh
+7
View File
@@ -36,4 +36,11 @@ test: hiredis redis $(BUILD)/common_tests $(BUILD)/db_tests $(BUILD)/io_tests $(
./thirdparty/redis-3.2.3/src/redis-server &
sleep 1s ; ./build/common_tests ; ./build/db_tests ; ./build/io_tests ; ./build/task_tests ; ./build/redis_tests
valgrind: test
valgrind --leak-check=full --error-exitcode=1 ./build/common_tests
valgrind --leak-check=full --error-exitcode=1 ./build/db_tests
valgrind --leak-check=full --error-exitcode=1 ./build/io_tests
valgrind --leak-check=full --error-exitcode=1 ./build/task_tests
valgrind --leak-check=full --error-exitcode=1 ./build/redis_tests
FORCE: