How to build muscle and lose fat while traveling

It’s hard to stay fit while you’re traveling. There are temptations everywhere to just have fun and be unhealthy. How can you stay fit while you travel?