refactored the travis script