Refactoring the deploy for travis