You can set a more customized environment in Travis CI by using the sudo and dist fields in the YML script.
Selecting infrastructure
Get Hands-On Continuous Integration and Delivery now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.