Use Travis CI with Racket
![]() Change install-racket.sh to: - Use a RACKET_DIR env var saying where to install Racket. For backwards compatibility, if undefined this defaults to /usr/racket. - Don't use sudo unless installing to /usr*. - Download nightly snapshot builds from Northwestern not Utah. See https://github.com/travis-ci/travis-ci/issues/3012 - Fix the here string (which was slightly broken all along, although in a way that had been harmless). Change the example .travis.yml to: - Split env into global and matrix sections. - Specify RACKET_DIR as a global var. - Specify the RACKET_VERSIONs as matrix vars. - Set PATH from RACKET_DIR (because install-racket.sh can't do this -- it can't change the env for the .travis.yml). |
||
---|---|---|
.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: