Support Racket 5.9x and 6.0.

This commit is contained in:
Greg Hendershott 2014-02-27 09:10:25 -05:00
parent af60d70904
commit d29ac874cc
2 changed files with 12 additions and 5 deletions

View File

@ -12,10 +12,15 @@ env:
- RACKET_VERSION=5.3.4 - RACKET_VERSION=5.3.4
- RACKET_VERSION=5.3.5 - RACKET_VERSION=5.3.5
- RACKET_VERSION=5.92 - RACKET_VERSION=5.92
- RACKET_VERSION=6.0
- RACKET_VERSION=HEAD - RACKET_VERSION=HEAD
before_install: before_install:
- curl -L https://github.com/greghendershott/travis-racket/releases/download/v0.4/install-racket.sh | sh # Temporarily use raw.github.com to test this. After tests OK, will
# make a v0.5 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.4/install-racket.sh | sh
install: install:

10
install-racket.sh Normal file → Executable file
View File

@ -1,9 +1,11 @@
set -e set -e
if [ "$RACKET_VERSION" = "HEAD" ]; then if [[ "$RACKET_VERSION" = "HEAD" ]]; then
URL="http://www.cs.utah.edu/plt/snapshots/current/installers/racket-current-x86_64-linux-precise.sh" URL="http://www.cs.utah.edu/plt/snapshots/current/installers/racket-current-x86_64-linux-precise.sh"
elif [ "$RACKET_VERSION" = "5.92" ]; then elif [[ "$RACKET_VERSION" = 5.9* ]]; then
URL="http://download.racket-lang.org/installers/5.92/racket-5.92-x86_64-linux-ubuntu-quantal.sh" URL="http://download.racket-lang.org/installers/${RACKET_VERSION}/racket-${RACKET_VERSION}-x86_64-linux-ubuntu-quantal.sh"
elif [[ "$RACKET_VERSION" = 6.0* ]]; then
URL="http://download.racket-lang.org/installers/${RACKET_VERSION}/racket-${RACKET_VERSION}-x86_64-linux-ubuntu-precise.sh"
else else
URL="http://download.racket-lang.org/installers/${RACKET_VERSION}/racket/racket-${RACKET_VERSION}-bin-x86_64-linux-debian-squeeze.sh" URL="http://download.racket-lang.org/installers/${RACKET_VERSION}/racket/racket-${RACKET_VERSION}-bin-x86_64-linux-debian-squeeze.sh"
fi fi
@ -19,6 +21,6 @@ sudo "$INSTALL" <<EOF
no no
/usr/racket /usr/racket
EOF # EOF
exit 0 exit 0