Support HEAD as a Racket version.

This uses a nightly build installer.

As the comments in install-racket.sh state, this has the weakness of
hardcoding a version like 5.90.0.9 because AFIK there is no abstract URL
meaning "whatever the latest version is".
This commit is contained in:
Greg Hendershott 2013-10-17 03:53:05 -04:00
parent db9db1ee9d
commit c2fc8bef67
2 changed files with 15 additions and 2 deletions

View File

@ -11,9 +11,13 @@ language: c
env:
- RACKET_VERSION=5.3.4
- RACKET_VERSION=5.3.5
- RACKET_VERSION=HEAD
before_install:
- curl -L https://github.com/greghendershott/travis-racket/releases/download/v0.2/install-racket.sh | sh
# Temporarily use raw.github.com to test this. Once working, will make a v0.3 and
# change this back to be an example of the right way to do this.
- curl https://raw.github.com/greghendershott/travis-racket/master/install-racket.sh | sh
# - curl -L https://github.com/greghendershott/travis-racket/releases/download/v0.2/install-racket.sh | sh
install:

View File

@ -1,6 +1,15 @@
set -e
URL="http://download.racket-lang.org/installers/$RACKET_VERSION/racket/racket-$RACKET_VERSION-bin-x86_64-linux-debian-squeeze.sh"
if [ "$RACKET_VERSION" == "HEAD" ]; then
# Unfortunately there is no abstract URL for "HEAD" -- the nighly
# builds have a version number like 5.90.0.9 embedded in the
# URL. So this will need to be updated manually whenever the
# version is bumped.
URL="http://www.cs.utah.edu/plt/snapshots/current/installers/racket-5.90.0.9-x86_64-linux-precise.sh"
else
URL="http://download.racket-lang.org/installers/$RACKET_VERSION/racket/racket-$RACKET_VERSION-bin-x86_64-linux-debian-squeeze.sh"
fi
INSTALL="./racket-${RACKET_VERSION}.sh"
echo "Downloading $URL to $INSTALL:"