Valgrind checks for invalid memory accesses and memory leaks.
"-m" makes php unit tests use valgrind (and malloc instead of emalloc, etc.)
(Takes around 20 minutes)
Also support testing v8js with NTS (The default used by Travis is ZTS)
One of the builds will download and install PHP. This will be cached.
- This reproduces #247 on travis
- For details on travis build caching, see
https://docs.travis-ci.com/user/caching/#Pull-request-builds-and-caches
Skip memory and time limit tests - Those are flaky with valgrind.
The tests fail but don't have memory leaks.
(When https://github.com/phpv8/v8js/pull/248 was tested)
Use 5.7 (earliest ppa >= 5.6) for running valgrind checks.
Fix ppa checks - The installation folder changed to /opt/libv8-5.7
- run tests both with and without valgrind in libv8 5.7
Otherwise, time limits and memory limits wouldn't be tested at all in 5.7
Always pass strings for splitting environment variables by spaces.