Added deploy conditions to .travis.yml