Moving variable logic to script section of .travis.yml