Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
24 changes: 16 additions & 8 deletions ci/install-ansi-test.bash
Original file line number Diff line number Diff line change
@@ -1,9 +1,16 @@
#!/usr/bin/env bash

pushd ${ABCL_ROOT}/..
uri="https://gitlab.common-lisp.net/ansi-test/ansi-test"
commitish="master"

topdir="$(dirname ${ABCL_ROOT:-/tmp}/..)"
if [ ! -d "${topdir}" ]; then
mkdir -p "${topdir}"
fi

pushd "${topdir}" && echo "Cloning <${uri}> under <file://${topdir}>."
if [[ ! -r ansi-test ]]; then
git clone https://gitlab.common-lisp.net/ansi-test/ansi-test
git clone "${uri}"
else
pushd ansi-test
if [[ -r .hg ]]; then
Expand All @@ -15,11 +22,12 @@ else
fi

pushd ansi-test
# pin known working version
# DEPRECATED pin known working version
# <https://gitlab.common-lisp.net/ansi-test/ansi-test/-/issues/31>
git checkout 1c832cf
git show-ref
git rev-parse
popd
# git checkout 1c832cf
echo "Explicitly updating <file://${topdir}> worktree to <commit:${commitish}>." \
&& git checkout "$commitish"
echo "References to <commit:${commitish}>: " && git show-ref "$commitish"
popd

popd
popd