Switch from RACKET_EDITION=MINIMAL to RACKET_MINIMAL=1
Also: - Only support it for 6.x and HEAD. Don't bother with 5.9x, and don't try to support textual (it's too different). - For the minimal case, do the raco pkg install of rackunit in install-racket.sh. Can conditionally test, there. Also, easier for users than them having to do it in .travis.yml.
This commit is contained in:
parent
ce1dbbf583
commit
ebbdab3de8
18
.travis.yml
18
.travis.yml
|
@ -29,22 +29,19 @@ env:
|
||||||
- RACKET_VERSION=6.1.1
|
- RACKET_VERSION=6.1.1
|
||||||
- RACKET_VERSION=HEAD
|
- RACKET_VERSION=HEAD
|
||||||
- RACKET_VERSION=SCOPE_SNAPSHOT
|
- RACKET_VERSION=SCOPE_SNAPSHOT
|
||||||
# Optionally supply RACKET_EDITION with the value FULL or MINIMAL.
|
# Optionally, can also supply RACKET_MINIMAL=1. Only works for
|
||||||
# Defaults to FULL.
|
# Racket 6.0+ or HEAD.
|
||||||
- RACKET_VERSION=5.3.4 RACKET_EDITION=MINIMAL
|
- RACKET_VERSION=6.0 RACKET_MINIMAL=1
|
||||||
- RACKET_VERSION=5.3.5 RACKET_EDITION=MINIMAL
|
- RACKET_VERSION=6.1 RACKET_MINIMAL=1
|
||||||
- RACKET_VERSION=5.92 RACKET_EDITION=MINIMAL
|
- RACKET_VERSION=6.1.1 RACKET_MINIMAL=1
|
||||||
- RACKET_VERSION=6.0 RACKET_EDITION=MINIMAL
|
- RACKET_VERSION=HEAD RACKET_MINIMAL=1
|
||||||
- RACKET_VERSION=6.1 RACKET_EDITION=MINIMAL
|
|
||||||
- RACKET_VERSION=6.1.1 RACKET_EDITION=MINIMAL
|
|
||||||
- RACKET_VERSION=HEAD RACKET_EDITION=MINIMAL
|
|
||||||
|
|
||||||
# You may want to test against certain versions of Racket, without
|
# You may want to test against certain versions of Racket, without
|
||||||
# having them count against the overall success/failure.
|
# having them count against the overall success/failure.
|
||||||
matrix:
|
matrix:
|
||||||
allow_failures:
|
allow_failures:
|
||||||
- env: RACKET_VERSION=HEAD
|
- env: RACKET_VERSION=HEAD
|
||||||
- env: RACKET_VERSION=HEAD RACKET_EDITION=MINIMAL
|
- env: RACKET_VERSION=HEAD RACKET_MINIMAL=1
|
||||||
- env: RACKET_VERSION=SCOPE_SNAPSHOT
|
- env: RACKET_VERSION=SCOPE_SNAPSHOT
|
||||||
# Fast finish: Overall build result is determined as soon as any of
|
# Fast finish: Overall build result is determined as soon as any of
|
||||||
# its rows have failed, or, all of its rows that aren't allowed to
|
# its rows have failed, or, all of its rows that aren't allowed to
|
||||||
|
@ -66,7 +63,6 @@ before_script:
|
||||||
|
|
||||||
# Here supply steps such as raco make, raco test, etc.
|
# Here supply steps such as raco make, raco test, etc.
|
||||||
script:
|
script:
|
||||||
- raco pkg install --scope installation rackunit # in case minimal racket
|
|
||||||
- raco test -x .
|
- raco test -x .
|
||||||
|
|
||||||
# NOTE: If your repo is a Racket package with an info.rkt that
|
# NOTE: If your repo is a Racket package with an info.rkt that
|
||||||
|
|
|
@ -3,12 +3,8 @@
|
||||||
|
|
||||||
set -e
|
set -e
|
||||||
|
|
||||||
if [[ "$RACKET_EDITION" = "" ]]; then
|
|
||||||
RACKET_EDITION="FULL"
|
|
||||||
fi
|
|
||||||
|
|
||||||
if [[ "$RACKET_VERSION" = "HEAD" ]]; then
|
if [[ "$RACKET_VERSION" = "HEAD" ]]; then
|
||||||
if [[ "$RACKET_EDITION" = "MINIMAL" ]]; then
|
if [[ "$RACKET_MINIMAL" = "1" ]]; then
|
||||||
URL="http://plt.eecs.northwestern.edu/snapshots/current/installers/min-racket-current-x86_64-linux-precise.sh"
|
URL="http://plt.eecs.northwestern.edu/snapshots/current/installers/min-racket-current-x86_64-linux-precise.sh"
|
||||||
else
|
else
|
||||||
URL="http://plt.eecs.northwestern.edu/snapshots/current/installers/racket-test-current-x86_64-linux-precise.sh"
|
URL="http://plt.eecs.northwestern.edu/snapshots/current/installers/racket-test-current-x86_64-linux-precise.sh"
|
||||||
|
@ -16,23 +12,15 @@ if [[ "$RACKET_VERSION" = "HEAD" ]]; then
|
||||||
elif [[ "$RACKET_VERSION" = "SCOPE_SNAPSHOT" ]]; then
|
elif [[ "$RACKET_VERSION" = "SCOPE_SNAPSHOT" ]]; then
|
||||||
URL="http://www.cs.utah.edu/~mflatt/tmp/scope-snapshot/installers/racket-6.2.900.3-x86_64-linux.sh"
|
URL="http://www.cs.utah.edu/~mflatt/tmp/scope-snapshot/installers/racket-6.2.900.3-x86_64-linux.sh"
|
||||||
elif [[ "$RACKET_VERSION" = 5.9* ]]; then
|
elif [[ "$RACKET_VERSION" = 5.9* ]]; then
|
||||||
if [[ "$RACKET_EDITION" = "MINIMAL" ]]; then
|
URL="http://download.racket-lang.org/installers/${RACKET_VERSION}/racket-${RACKET_VERSION}-x86_64-linux-ubuntu-quantal.sh"
|
||||||
URL="http://mirror.racket-lang.org/installers/${RACKET_VERSION}/racket-minimal-${RACKET_VERSION}-x86_64-linux-ubuntu-quantal.sh"
|
|
||||||
else
|
|
||||||
URL="http://download.racket-lang.org/installers/${RACKET_VERSION}/racket-${RACKET_VERSION}-x86_64-linux-ubuntu-quantal.sh"
|
|
||||||
fi
|
|
||||||
elif [[ "$RACKET_VERSION" = 6.* ]]; then
|
elif [[ "$RACKET_VERSION" = 6.* ]]; then
|
||||||
if [[ "$RACKET_EDITION" = "MINIMAL" ]]; then
|
if [[ "$RACKET_MINIMAL" = "1" ]]; then
|
||||||
URL="http://mirror.racket-lang.org/installers/${RACKET_VERSION}/racket-minimal-${RACKET_VERSION}-x86_64-linux-ubuntu-precise.sh"
|
URL="http://mirror.racket-lang.org/installers/${RACKET_VERSION}/racket-minimal-${RACKET_VERSION}-x86_64-linux-ubuntu-precise.sh"
|
||||||
else
|
else
|
||||||
URL="http://download.racket-lang.org/installers/${RACKET_VERSION}/racket-${RACKET_VERSION}-x86_64-linux-ubuntu-precise.sh"
|
URL="http://download.racket-lang.org/installers/${RACKET_VERSION}/racket-${RACKET_VERSION}-x86_64-linux-ubuntu-precise.sh"
|
||||||
fi
|
fi
|
||||||
else
|
else # 5.3.x
|
||||||
if [[ "$RACKET_EDITION" = "MINIMAL" ]]; then
|
URL="http://download.racket-lang.org/installers/${RACKET_VERSION}/racket/racket-${RACKET_VERSION}-bin-x86_64-linux-debian-squeeze.sh"
|
||||||
URL="http://mirror.racket-lang.org/installers/${RACKET_VERSION}/racket-textual/racket-textual-${RACKET_VERSION}-bin-x86_64-linux-debian-squeeze.sh"
|
|
||||||
else
|
|
||||||
URL="http://download.racket-lang.org/installers/${RACKET_VERSION}/racket/racket-${RACKET_VERSION}-bin-x86_64-linux-debian-squeeze.sh"
|
|
||||||
fi
|
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Older .travis.yml files don't set $RACKET_DIR (the Racket install
|
# Older .travis.yml files don't set $RACKET_DIR (the Racket install
|
||||||
|
@ -64,4 +52,9 @@ no
|
||||||
|
|
||||||
EOF
|
EOF
|
||||||
|
|
||||||
|
if [[ "$RACKET_MINIMAL" = "1" ]]; then
|
||||||
|
echo "Minimal Racket: Installing rackunit package..."
|
||||||
|
raco pkg install --auto --scope installation rackunit
|
||||||
|
fi
|
||||||
|
|
||||||
exit 0
|
exit 0
|
||||||
|
|
Loading…
Reference in New Issue
Block a user