Compare commits
10 Commits
try-both-h
...
master
Author | SHA1 | Date | |
---|---|---|---|
![]() |
1d7ced666d | ||
![]() |
1ea37ca479 | ||
![]() |
b86c9bc228 | ||
![]() |
de55d4ca02 | ||
![]() |
e0f64b5027 | ||
![]() |
e290db2a0a | ||
![]() |
75751ba27d | ||
![]() |
5a25c56f14 | ||
![]() |
d2fb870328 | ||
![]() |
e526dfb240 |
2
.github/FUNDING.yml
vendored
2
.github/FUNDING.yml
vendored
|
@ -1,2 +0,0 @@
|
|||
github: greghendershott
|
||||
custom: https://www.paypal.me/greghendershott
|
23
README.md
23
README.md
|
@ -1,4 +1,25 @@
|
|||

|
||||
# Deprecated
|
||||
|
||||
As of 2020-11-25 I no longer use Travis CI for my projects.
|
||||
|
||||
Instead I am using
|
||||
[`setup-racket`](https://github.com/Bogdanp/setup-racket) with GitHub
|
||||
Actions.
|
||||
|
||||
After maintaining this repo for eight years, I'm glad to pass the
|
||||
baton.
|
||||
|
||||
If you're willing and able to pay Travis CI, you might still find this
|
||||
repo useful. You can fork it. Someday, when there is a new version of
|
||||
Racket, you might need to update the `install-racket.sh` script (as I
|
||||
would have done, but won't be doing anymore).
|
||||
|
||||
I'm not going to "Archive" this repo -- which would make it read-only
|
||||
for issues and pull-requests -- right away. So if you have any
|
||||
questions, feel feee to open an issue. But eventually I probably
|
||||
will archive it.
|
||||
|
||||
# Still want to use this? Here's the old README
|
||||
|
||||
Until/unless Travis CI gets built-in support for Racket, we can use
|
||||
the `install:` section of `.travis.yml` to download and run the
|
||||
|
|
|
@ -8,15 +8,12 @@ env:
|
|||
- RACKET_DIR=~/racket
|
||||
matrix:
|
||||
# Supply at least one RACKET_VERSION environment variable. This is
|
||||
# used by the install-racket.sh script (run at before_install,
|
||||
# below) to select the version of Racket to download and install.
|
||||
# used by the install-racket.sh script to select the version of
|
||||
# Racket to download and install.
|
||||
#
|
||||
# Supply more than one RACKET_VERSION (as in the example below) to
|
||||
# create a Travis-CI build matrix to test against multiple Racket
|
||||
# versions.
|
||||
- RACKET_VERSION=6.1
|
||||
- RACKET_VERSION=6.1.1
|
||||
- RACKET_VERSION=6.2
|
||||
- RACKET_VERSION=6.3
|
||||
- RACKET_VERSION=6.4
|
||||
- RACKET_VERSION=6.5
|
||||
|
@ -34,6 +31,10 @@ env:
|
|||
- RACKET_VERSION=7.4
|
||||
- RACKET_VERSION=7.5
|
||||
- RACKET_VERSION=7.6
|
||||
- RACKET_VERSION=7.7
|
||||
- RACKET_VERSION=7.8
|
||||
- RACKET_VERSION=7.9
|
||||
- RACKET_VERSION=7.9 RACKET_CS=1
|
||||
# "HEAD" is a daily snapshot built from the `master` branch.
|
||||
# This is the main variant of Racket that uses its own runtime.
|
||||
- RACKET_VERSION=HEAD
|
||||
|
|
|
@ -44,62 +44,57 @@ fi
|
|||
# and variants using a consistent naming scheme, and we'll try to make
|
||||
# it work.
|
||||
|
||||
HOST_1="https://www.cs.utah.edu/plt/"
|
||||
HOST_2="https://plt.eecs.northwestern.edu/"
|
||||
DL_BASE="https://www.cs.utah.edu/plt/installers"
|
||||
|
||||
if [[ "$RACKET_VERSION" = "RELEASE" ]]; then
|
||||
URL_1="https://pre-release.racket-lang.org/installers/racket-${MIN}current-x86_64-linux${RACKET_NATIPKG}.sh"
|
||||
URL_2="${URL_1}"
|
||||
elif [[ "$RACKET_VERSION" = "RELEASECS" ]]; then
|
||||
URL_1="https://pre-release.racket-lang.org/installers/racket-${MIN}current-x86_64-linux${RACKET_NATIPKG}-cs.sh"
|
||||
URL_2="${URL_1}"
|
||||
else
|
||||
if [[ "$RACKET_VERSION" = "HEAD" ]]; then
|
||||
# In theory either NWU or Utah should work for downloading snapshot
|
||||
# a.k.a. HEAD builds. In practice, it varies from time to time.
|
||||
## HEAD_BASE="https://plt.eecs.northwestern.edu/snapshots/current"
|
||||
HEAD_BASE="https://www.cs.utah.edu/plt/snapshots/current"
|
||||
|
||||
if [[ "$RACKET_VERSION" = "HEADBC" ]]; then
|
||||
if [[ "$RACKET_MINIMAL" = "1" ]]; then
|
||||
P="snapshots/current/installers/min-racket-current-x86_64-linux-precise.sh"
|
||||
URL="${HEAD_BASE}/installers/racket-minimal-current-x86_64-linux-precise-bc.sh"
|
||||
else
|
||||
P="snapshots/current/installers/racket-current-x86_64-linux-precise.sh"
|
||||
URL="${HEAD_BASE}/installers/racket-current-x86_64-linux-precise-bc.sh"
|
||||
fi
|
||||
elif [[ "$RACKET_VERSION" = "HEADCS" ]]; then
|
||||
elif [[ "$RACKET_VERSION" = "HEADCS" || "$RACKET_VERSION" = "HEAD" ]]; then
|
||||
if [[ "$RACKET_MINIMAL" = "1" ]]; then
|
||||
P="snapshots/current/installers/min-racket-current-x86_64-linux-cs-xenial.sh"
|
||||
URL="${HEAD_BASE}/installers/racket-minimal-current-x86_64-linux-xenial.sh"
|
||||
else
|
||||
P="snapshots/current/installers/racket-current-x86_64-linux-cs-xenial.sh"
|
||||
URL="${HEAD_BASE}/installers/racket-current-x86_64-linux-xenial.sh"
|
||||
fi
|
||||
elif [[ "$RACKET_VERSION" = 5.3* ]]; then
|
||||
if [[ "$RACKET_MINIMAL" = "1" ]]; then
|
||||
P="installers/${RACKET_VERSION}/racket-textual/racket-textual-${RACKET_VERSION}-bin-x86_64-linux-debian-squeeze.sh"
|
||||
URL="${DL_BASE}/${RACKET_VERSION}/racket-textual/racket-textual-${RACKET_VERSION}-bin-x86_64-linux-debian-squeeze.sh"
|
||||
else
|
||||
P="installers/${RACKET_VERSION}/racket/racket-${MIN}${RACKET_VERSION}-bin-x86_64-linux-debian-squeeze.sh"
|
||||
URL="${DL_BASE}/${RACKET_VERSION}/racket/racket-${MIN}${RACKET_VERSION}-bin-x86_64-linux-debian-squeeze.sh"
|
||||
fi
|
||||
elif [[ "$RACKET_VERSION" = "RELEASE" ]]; then
|
||||
URL="https://pre-release.racket-lang.org/installers/racket-${MIN}current-x86_64-linux${RACKET_NATIPKG}.sh"
|
||||
elif [[ "$RACKET_VERSION" = "RELEASECS" ]]; then
|
||||
URL="https://pre-release.racket-lang.org/installers/racket-${MIN}current-x86_64-linux${RACKET_NATIPKG}-cs.sh"
|
||||
elif [[ "$RACKET_VERSION" = 5.9* ]]; then
|
||||
P="installers/${RACKET_VERSION}/racket-${MIN}${RACKET_VERSION}-x86_64-linux-ubuntu-quantal.sh"
|
||||
URL="${DL_BASE}/${RACKET_VERSION}/racket-${MIN}${RACKET_VERSION}-x86_64-linux-ubuntu-quantal.sh"
|
||||
elif [[ "$RACKET_VERSION" = 6.[0-4] ]] || [[ "$RACKET_VERSION" = 6.[0-4].[0-9] ]]; then
|
||||
P="installers/${RACKET_VERSION}/racket-${MIN}${RACKET_VERSION}-x86_64-linux-ubuntu-precise.sh"
|
||||
URL="${DL_BASE}/${RACKET_VERSION}/racket-${MIN}${RACKET_VERSION}-x86_64-linux-ubuntu-precise.sh"
|
||||
elif [[ "$RACKET_VERSION" = 6.* ]]; then
|
||||
P="installers/${RACKET_VERSION}/racket-${MIN}${RACKET_VERSION}-x86_64-linux${RACKET_NATIPKG}.sh"
|
||||
URL="${DL_BASE}/${RACKET_VERSION}/racket-${MIN}${RACKET_VERSION}-x86_64-linux${RACKET_NATIPKG}.sh"
|
||||
elif [[ "$RACKET_VERSION" = 7.* ]]; then
|
||||
P="installers/${RACKET_VERSION}/racket-${MIN}${RACKET_VERSION}-x86_64-linux${RACKET_NATIPKG}${RACKET_CS}.sh"
|
||||
URL="${DL_BASE}/${RACKET_VERSION}/racket-${MIN}${RACKET_VERSION}-x86_64-linux${RACKET_NATIPKG}${RACKET_CS}.sh"
|
||||
else
|
||||
echo "ERROR: Unsupported version ${RACKET_VERSION}"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
URL_1="${HOST_1}${P}"
|
||||
URL_2="${HOST_2}${P}"
|
||||
fi
|
||||
|
||||
printf "%-25s" "${MIN}${RACKET_VERSION}${RACKET_NATIPKG}${RACKET_CS}"
|
||||
echo "@ ${URL_1} or ${URL_2}"
|
||||
if curl -I -L --max-time 60 "{$URL_1}" 2>&1 | grep 404.Not.Found ; then
|
||||
echo "${URL_1} not available; trying ${URL_2}"
|
||||
if curl -I -L --max-time 60 "${URL_2}" 2>&1 | grep 404.Not.Found ; then
|
||||
echo "@ ${URL}"
|
||||
if curl -I -L "$URL" 2>&1 | grep 404.Not.Found ; then
|
||||
echo "Installer not available"
|
||||
if [[ "$RACKET_VERSION" = "HEAD" ]]; then
|
||||
echo "Did the build fail? Check the logs at ${HOST_2}snapshots/current//log/"
|
||||
echo "Did the build fail? Check the logs at ${HEAD_BASE}/log/"
|
||||
fi
|
||||
exit 1
|
||||
fi
|
||||
fi
|
||||
|
||||
if [ -n "$TEST" ]; then
|
||||
exit 0
|
||||
|
|
6
test.sh
6
test.sh
|
@ -1,14 +1,14 @@
|
|||
#!/bin/bash
|
||||
|
||||
# In older Racket versions, there is a "MINIMAL" "flavor".
|
||||
for VER in HEAD HEADCS RELEASE RELEASECS 6.4 6.3 6.2 6.2.1 6.1 6.1.1 6.0 6.0.1 5.93 5.92 5.3 5.3.6 5.3.5 5.3.4 5.3.3 5.3.2 5.3.1 ; do
|
||||
for VER in 6.4 6.3 6.2 6.2.1 6.1 6.1.1 6.0 6.0.1 5.93 5.92 5.3 5.3.6 5.3.5 5.3.4 5.3.3 5.3.2 5.3.1 ; do
|
||||
for MIN in 0 1; do
|
||||
TEST=1 RACKET_MINIMAL=$MIN RACKET_VERSION=$VER ./install-racket.sh || exit 1
|
||||
done
|
||||
done
|
||||
|
||||
# Starting with Racket 6.5, there is also a "NATIPKG" flavor.
|
||||
for VER in HEAD 7.3 7.2 7.1 7.0 6.12 6.11 6.10 6.9 6.8 6.7 6.6 6.5 ; do
|
||||
for VER in 7.3 7.2 7.1 7.0 6.12 6.11 6.10 6.9 6.8 6.7 6.6 6.5 ; do
|
||||
for MIN in 0 1; do
|
||||
for NAT in 0 1; do
|
||||
TEST=1 RACKET_MINIMAL=$MIN RACKET_NATIPKG=$NAT RACKET_VERSION=$VER ./install-racket.sh || exit 1
|
||||
|
@ -17,7 +17,7 @@ for VER in HEAD 7.3 7.2 7.1 7.0 6.12 6.11 6.10 6.9 6.8 6.7 6.6 6.5 ; do
|
|||
done
|
||||
|
||||
# Starting with Racket 7.4, there is also a "CS" flavor.
|
||||
for VER in HEAD HEADCS 7.5 7.4 ; do
|
||||
for VER in HEAD HEADBC HEADCS 7.9 7.8 7.7 7.6 7.5 7.4 ; do
|
||||
for MIN in 0 1; do
|
||||
for NAT in 0 1; do
|
||||
for CS in 0 1; do
|
||||
|
|
Loading…
Reference in New Issue
Block a user