title: travis-ci: how to move or rename a file
body: <p>Before deployment, (or after, but this is harder as we are deploying to <code>s3</code>), we need to rename <code>staging.robots.txt</code> to <code>robots.txt</code> (overwriting the default <code>robots.txt</code>) for the staging deployment only, so that we can block crawling on our staging server (but allow it on production).</p>
  
  <p>Any idea if this is possible?</p>
  
  <p>On the Travis documentation site, there is no info on the <code>before_deploy</code> stage, and we cant see any feature to rename files. With Jenkins, I would simply put <code>cp xxx yyy</code> or similar in the build script, as I know my Jenkins is running on Ubuntu, but we don't know the equivalent Travis command for the <code>.travis.yml</code> file.</p>
  
  <p><strong>== UPDATE ==</strong></p>
  
  <p>Having done more research, it might be possible to do this through a script e.g. commit <code>move.sh</code> into your repo, then call it. As you can choose what OS the build is done one (e.g. Linux), you can write the script for that platform. However, it's not clear at what point you can call this script in the <code>.yml</code> file.</p>