Skip to content

Commit

Permalink
Update the TRACK_NAME, TRACK_SLUG placeholders to match generic-ana…
Browse files Browse the repository at this point in the history
…lyzer/pr/68 (#172)
  • Loading branch information
IsaacG authored Nov 17, 2024
1 parent 6a6b6fe commit 78b4a91
Show file tree
Hide file tree
Showing 6 changed files with 12 additions and 12 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ jobs:
context: .
push: false
load: true
tags: exercism/TRACK_SLUG-test-runner
tags: exercism/replace-this-with-the-track-slug-test-runner
cache-from: type=gha
cache-to: type=gha,mode=max

Expand Down
4 changes: 2 additions & 2 deletions TRACK_README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Exercism TRACK_NAME Test Runner
# Exercism replace-this-with-the-track-name Test Runner

The Docker image to automatically run tests on TRACK_NAME solutions submitted to [Exercism].
The Docker image to automatically run tests on replace-this-with-the-track-name solutions submitted to [Exercism].

## Getting started

Expand Down
2 changes: 1 addition & 1 deletion bin/benchmark-in-docker.sh
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ required_tool hyperfine

# Pre-build the Docker image
if [ -z "${SKIP_DOCKER_BUILD}" ]; then
docker build --rm -t exercism/TRACK_SLUG-test-runner .
docker build --rm -t exercism/replace-this-with-the-track-slug-test-runner .
else
echo "Skipping docker build because SKIP_DOCKER_BUILD is set."
fi
Expand Down
8 changes: 4 additions & 4 deletions bin/bootstrap.sh
Original file line number Diff line number Diff line change
Expand Up @@ -39,12 +39,12 @@ REPO_DIR=$(mktemp -d)
cp -a . "${REPO_DIR}"
cd "${REPO_DIR}" || die "Failed to cd to ${REPO_DIR}"

for file in $(git grep --files-with-matches TRACK_SLUG); do
sed -i "s/TRACK_SLUG/${SLUG}/g" "${file}"
for file in $(git grep --files-with-matches replace-this-with-the-track-slug); do
sed -i "s/replace-this-with-the-track-slug/${SLUG}/g" "${file}"
done

for file in $(git grep --files-with-matches TRACK_NAME); do
sed -i "s/TRACK_NAME/${LANGUAGE}/g" "${file}"
for file in $(git grep --files-with-matches replace-this-with-the-track-name); do
sed -i "s/replace-this-with-the-track-name/${LANGUAGE}/g" "${file}"
done

rm -f bin/bootstrap.sh
Expand Down
4 changes: 2 additions & 2 deletions bin/run-in-docker.sh
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ output_dir=$(realpath "${3%/}")
mkdir -p "${output_dir}"

# Build the Docker image
docker build --rm -t exercism/TRACK_SLUG-test-runner .
docker build --rm -t exercism/replace-this-with-the-track-slug-test-runner .

# Run the Docker image using the settings mimicking the production environment
docker run \
Expand All @@ -43,4 +43,4 @@ docker run \
--mount type=bind,src="${solution_dir}",dst=/solution \
--mount type=bind,src="${output_dir}",dst=/output \
--mount type=tmpfs,dst=/tmp \
exercism/TRACK_SLUG-test-runner "${slug}" /solution /output
exercism/replace-this-with-the-track-slug-test-runner "${slug}" /solution /output
4 changes: 2 additions & 2 deletions bin/run-tests-in-docker.sh
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
set -e

# Build the Docker image
docker build --rm -t exercism/TRACK_SLUG-test-runner .
docker build --rm -t exercism/replace-this-with-the-track-slug-test-runner .

# Run the Docker image using the settings mimicking the production environment
docker run \
Expand All @@ -28,4 +28,4 @@ docker run \
--volume "${PWD}/bin/run-tests.sh:/opt/test-runner/bin/run-tests.sh" \
--workdir /opt/test-runner \
--entrypoint /opt/test-runner/bin/run-tests.sh \
exercism/TRACK_SLUG-test-runner
exercism/replace-this-with-the-track-slug-test-runner

0 comments on commit 78b4a91

Please sign in to comment.