Refactoring travis build file