Skip to content

Commit 3350aea

Browse files
authored
Update the TRACK_NAME, TRACK_SLUG placeholders to match generic-analyzer/pr/68 (#94)
1 parent 73caf11 commit 3350aea

File tree

6 files changed

+12
-12
lines changed

6 files changed

+12
-12
lines changed

.github/workflows/ci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ jobs:
2727
context: .
2828
push: false
2929
load: true
30-
tags: exercism/TRACK_SLUG-representer
30+
tags: exercism/replace-this-with-the-track-slug-representer
3131
cache-from: type=gha
3232
cache-to: type=gha,mode=max
3333

TRACK_README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
# Exercism TRACK_NAME Representer
1+
# Exercism replace-this-with-the-track-name Representer
22

3-
The Docker image to automatically create a representation for TRACK_NAME solutions submitted to [Exercism].
3+
The Docker image to automatically create a representation for replace-this-with-the-track-name solutions submitted to [Exercism].
44

55
## Getting started
66

bin/benchmark-in-docker.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ required_tool hyperfine
2727

2828
# Pre-build the Docker image
2929
if [ -z "${SKIP_DOCKER_BUILD}" ]; then
30-
docker build --rm -t exercism/TRACK_SLUG-test-runner .
30+
docker build --rm -t exercism/replace-this-with-the-track-slug-test-runner .
3131
else
3232
echo "Skipping docker build because SKIP_DOCKER_BUILD is set."
3333
fi

bin/bootstrap.sh

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -39,12 +39,12 @@ REPO_DIR=$(mktemp -d)
3939
cp -a . "${REPO_DIR}"
4040
cd "${REPO_DIR}" || die "Failed to cd to ${REPO_DIR}"
4141

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

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

5050
rm -f bin/bootstrap.sh

bin/run-in-docker.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ output_dir="${3%/}"
3030
mkdir -p "${output_dir}"
3131

3232
# Build the Docker image
33-
docker build --rm -t exercism/TRACK_SLUG-representer .
33+
docker build --rm -t exercism/replace-this-with-the-track-slug-representer .
3434

3535
# Run the Docker image using the settings mimicking the production environment
3636
docker run \
@@ -40,4 +40,4 @@ docker run \
4040
--mount type=bind,source="${input_dir}",destination=/solution \
4141
--mount type=bind,source="${output_dir}",destination=/output \
4242
--mount type=tmpfs,destination=/tmp \
43-
exercism/TRACK_SLUG-representer "${slug}" /solution /output
43+
exercism/replace-this-with-the-track-slug-representer "${slug}" /solution /output

bin/run-tests-in-docker.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
# ./bin/run-tests-in-docker.sh
1414

1515
# Build the Docker image
16-
docker build --rm -t exercism/TRACK_SLUG-representer .
16+
docker build --rm -t exercism/replace-this-with-the-track-slug-representer .
1717

1818
# Run the Docker image using the settings mimicking the production environment
1919
docker run \
@@ -25,4 +25,4 @@ docker run \
2525
--volume "${PWD}/bin/run-tests.sh:/opt/representer/bin/run-tests.sh" \
2626
--workdir /opt/representer \
2727
--entrypoint /opt/representer/bin/run-tests.sh \
28-
exercism/TRACK_SLUG-representer
28+
exercism/replace-this-with-the-track-slug-representer

0 commit comments

Comments
 (0)