Move scripts code back to .travis.yml file.