rewrite Travis test script