diff --git a/.travis.yml b/.travis.yml index a0d0aaf..2ad7034 100644 --- a/.travis.yml +++ b/.travis.yml @@ -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: diff --git a/install-racket.sh b/install-racket.sh index d34a6ab..5918a8d 100644 --- a/install-racket.sh +++ b/install-racket.sh @@ -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:"