Refactor Travis configuration