Skip to content

Commit 3e862b1

Browse files
author
Tyson Andre
committed
Make valgrind run on travis tests of v8js
Valgrind checks for invalid memory accesses and memory leaks. "-m" makes php unit tests use valgrind (and malloc instead of emalloc, etc.)
1 parent 4161008 commit 3e862b1

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

.travis.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,11 @@ php:
88
env:
99
- V8VER=5.2
1010
- V8VER=5.1
11+
- V8VER=5.2 VALGRIND=1
1112

1213
before_install: make -f Makefile.travis before_install
13-
install: make -f Makefile.travis install
14+
install:
15+
- if [ "$VALGRIND" = 1 ]; then sudo apt-get install -qq valgrind; export TEST_PHP_ARGS="-m"; fi
16+
- make -f Makefile.travis install
17+
1418
script: make -f Makefile.travis test

0 commit comments

Comments
 (0)