Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update the TRACK_NAME, TRACK_SLUG placeholders to match generic-analyzer/pr/68 #172

Merged
merged 1 commit into from
Nov 17, 2024
Merged
Show file tree
Hide file tree
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
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