Added code to travis.sh to prevent build error on feature branches

Currently Travis fails on feature branches because it runs the post build process which shouldn't take place on feature branch