How to setup Travis-CI for open source Unity project on GitHub?

Hello.

I’d like to setup Travis-CI for my open source Unity project that I am hosting on GitHub. I’d like to be able to use continuous integration so I can push and pull changes I make to the repo with peace of mind that i’m not breaking something unintentionally. However I can’t figure out how I’m supposed to setup the travis.yml file to make it possible for it to work with Unity. Can anyone help me?

Well, it depends on what you mean by “not breaking something unintentionally” ?