Dont deploy for prs

Detect whether travis is building for a PR/non-master branch and skip deploy if so.