Rewrite travis config and test [ci skip]