speedup travis and cirumvent memory problem
add osx to travis