travis-racket/install-racket.sh
Greg Hendershott c2fc8bef67 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".
2013-10-17 03:53:05 -04:00

27 lines
729 B
Bash

set -e
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:"
curl -o $INSTALL $URL
echo "Running $INSTALL to install Racket:"
chmod u+rx "$INSTALL"
sudo "$INSTALL" <<EOF
no
1
EOF
exit 0