Use Travis CI with Racket
![]() History/background: 1. Originally, used curl with raw.github.com to get the latest version of install-racket.sh. 2. But GitHub discourages using raw.github.com. So switched to using the GitHub "releases" feature to make install-racket.sh available. But that's a PITA: (a) Need to make each release, and furthermore (b) there's no URL meaning "the latest version of the file to be downloaded" for the .travis.yml scripts to use, so they tediously need to be updated to fetch using the new URL for the new version. 3. OK, so now -- how about simply cloning the GitHub repo locally, and using the travis-racket.sh from that (which of course will be the latest version). |
||
---|---|---|
.gitignore | ||
.travis.yml | ||
install-racket.sh | ||
main.rkt | ||
README.md |
Experimenting with using Travis CI for a Racket project.
Until Travis CI gets built-in support for Racket, we can use the
before_install
clause of .travis.yml
to download and run the
Racket installer.
To add this capability to your project, simply add the
example .travis.yml
to your repo. You may need to change its script
section's raco make
and raco test
parts.
NOTE: In the
before_install:
step, be sure to pipe theinstall-racket.sh
script tobash
(not tosh
).
Here's a "badge" showing the status for the master
branch of this
repo: