Add memory checks to Travis build