Compare commits
10 Commits
Author | SHA1 | Date | |
---|---|---|---|
![]() |
3e8ce134a2 | ||
![]() |
96953efd06 | ||
![]() |
d7fafefbcc | ||
![]() |
c6f15f1888 | ||
![]() |
ebbdab3de8 | ||
![]() |
ce1dbbf583 | ||
![]() |
3cfe5074a8 | ||
![]() |
ae7f90507a | ||
![]() |
31a1e466fb | ||
![]() |
c3a5f7e085 |
14
.travis.yml
14
.travis.yml
|
@ -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
|
||||
|
|
|
@ -4,14 +4,22 @@
|
|||
set -e
|
||||
|
||||
if [[ "$RACKET_VERSION" = "HEAD" ]]; then
|
||||
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
|
||||
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"
|
||||
else
|
||||
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
|
||||
|
|
Loading…
Reference in New Issue
Block a user