Added branch limitations to .travis.yml

It doesn't need to build on CI unless it's testing or master.