Compare commits

...

10 Commits

Author SHA1 Message Date
Greg Hendershott
3e8ce134a2 Install rackunit-lib and compiler-lib
Latter provides the `raco test` command.
2015-05-18 21:35:18 -04:00
Greg Hendershott
96953efd06 Install rackunit (revert previous commit) 2015-05-18 21:32:22 -04:00
Greg Hendershott
d7fafefbcc Install rackunit-lib instead of rackunit 2015-05-18 21:20:33 -04:00
Greg Hendershott
c6f15f1888 Fix raco command 2015-05-18 20:54:01 -04:00
Greg Hendershott
ebbdab3de8 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.
2015-05-18 20:34:57 -04:00
Greg Hendershott
ce1dbbf583 Adjust script section.
Minimal Racket in 6.0+ is very minimal -- raco make and raco test
commands don't exist. Install rackunit.
2015-05-18 20:12:56 -04:00
Greg Hendershott
3cfe5074a8 Temporary hack to .travis.yml to test 2015-05-18 18:32:55 -04:00
Greg Hendershott
ae7f90507a Fix env var set 2015-05-18 18:05:47 -04:00
Greg Hendershott
31a1e466fb Excercise RACKET_EDITION in example .travis.yml 2015-05-18 17:37:31 -04:00
Greg Hendershott
c3a5f7e085 Add RACKET_EDITION to install-racket.sh
Note: I'm committing this without also updating the example .travis.yml,
in order to test the case where RACKET_EDITION is not specified at
all (e.g. for backward compatability with existing .travis.yml files).
In that case it should act like RACKET_EDITION=FULL.
2015-05-18 14:23:33 -04:00
2 changed files with 26 additions and 7 deletions

View File

@ -29,12 +29,19 @@ env:
- RACKET_VERSION=6.1.1
- RACKET_VERSION=HEAD
- RACKET_VERSION=SCOPE_SNAPSHOT
# Optionally, can also supply RACKET_MINIMAL=1. Only works for
# Racket 6.0+ or HEAD.
- RACKET_VERSION=6.0 RACKET_MINIMAL=1
- RACKET_VERSION=6.1 RACKET_MINIMAL=1
- RACKET_VERSION=6.1.1 RACKET_MINIMAL=1
- RACKET_VERSION=HEAD RACKET_MINIMAL=1
# You may want to test against certain versions of Racket, without
# having them count against the overall success/failure.
matrix:
allow_failures:
- env: RACKET_VERSION=HEAD
- env: RACKET_VERSION=HEAD RACKET_MINIMAL=1
- env: RACKET_VERSION=SCOPE_SNAPSHOT
# 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
@ -44,6 +51,9 @@ matrix:
before_install:
- git clone https://github.com/greghendershott/travis-racket.git
- cd travis-racket # REMOVE BEFORE MERGING TO MASTER
- git checkout minimal # REMOVE BEFORE MERGING TO MASTER
- cd .. # REMOVE BEFORE MERGING TO MASTER
- cat travis-racket/install-racket.sh | bash # pipe to bash not sh!
- export PATH="${RACKET_DIR}/bin:${PATH}" #install-racket.sh can't set for us
@ -52,11 +62,7 @@ install:
before_script:
# Here supply steps such as raco make, raco test, etc.
#
# Tip: Use `raco pkg install --deps search-auto <pkg>` to install any
# required packages without getting stuck on a confirmation prompt.
script:
- raco make main.rkt
- raco test -x .
# NOTE: If your repo is a Racket package with an info.rkt that

View File

@ -4,14 +4,22 @@
set -e
if [[ "$RACKET_VERSION" = "HEAD" ]]; then
URL="http://plt.eecs.northwestern.edu/snapshots/current/installers/racket-test-current-x86_64-linux-precise.sh"
if [[ "$RACKET_MINIMAL" = "1" ]]; then
URL="http://plt.eecs.northwestern.edu/snapshots/current/installers/min-racket-current-x86_64-linux-precise.sh"
else
URL="http://plt.eecs.northwestern.edu/snapshots/current/installers/racket-test-current-x86_64-linux-precise.sh"
fi
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"
elif [[ "$RACKET_VERSION" = 5.9* ]]; then
URL="http://download.racket-lang.org/installers/${RACKET_VERSION}/racket-${RACKET_VERSION}-x86_64-linux-ubuntu-quantal.sh"
elif [[ "$RACKET_VERSION" = 6.* ]]; then
URL="http://download.racket-lang.org/installers/${RACKET_VERSION}/racket-${RACKET_VERSION}-x86_64-linux-ubuntu-precise.sh"
else
if [[ "$RACKET_MINIMAL" = "1" ]]; then
URL="http://mirror.racket-lang.org/installers/${RACKET_VERSION}/racket-minimal-${RACKET_VERSION}-x86_64-linux-ubuntu-precise.sh"
else
URL="http://download.racket-lang.org/installers/${RACKET_VERSION}/racket-${RACKET_VERSION}-x86_64-linux-ubuntu-precise.sh"
fi
else # 5.3.x
URL="http://download.racket-lang.org/installers/${RACKET_VERSION}/racket/racket-${RACKET_VERSION}-bin-x86_64-linux-debian-squeeze.sh"
fi
@ -44,4 +52,9 @@ no
EOF
if [[ "$RACKET_MINIMAL" = "1" ]]; then
echo "Minimal Racket: Installing packages for raco test..."
${RACKET_DIR}/bin/raco pkg install --auto --scope installation rackunit-lib compiler-lib
fi
exit 0