speedup travis and cirumvent memory problem