As @florianb pointed out, I have to use git .
Initially, my .travis.yml was something like:
before_install: - curl -L https://raw.githubusercontent.com/greghendershott/travis-racket/master/install-racket.sh | bash
This will automatically get any latest version from the repo.
But someone pointed out to me that GitHub does not want people to use raw.github.com to download. Instead, people should use "releases." Thus, I was a good helper and manually did the release every time. Then my .travis.yml was something like:
before_install: - curl -L https://github.com/greghendershott/travis-racket/releases/download/v0.6/install-racket.sh | bash
But it is PITA to do a release every time. Even worse, all .travis.yml files must be updated to indicate a newer version of the file.
Instead, just use git to clone the repo and use the file inside it:
before_install: - git clone https://github.com/greghendershott/travis-racket.git - cat travis-racket/install-racket.sh | bash # pipe to bash not sh!
Greg Hendershott Jun 06 '14 at 23:52 2014-06-06 23:52
source share