File tree Expand file tree Collapse file tree 6 files changed +12
-12
lines changed
Expand file tree Collapse file tree 6 files changed +12
-12
lines changed Original file line number Diff line number Diff line change 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
Original file line number Diff line number Diff line change 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
Original file line number Diff line number Diff line change @@ -27,7 +27,7 @@ required_tool hyperfine
2727
2828# Pre-build the Docker image
2929if [ -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 .
3131else
3232 echo " Skipping docker build because SKIP_DOCKER_BUILD is set."
3333fi
Original file line number Diff line number Diff line change @@ -39,12 +39,12 @@ REPO_DIR=$(mktemp -d)
3939cp -a . " ${REPO_DIR} "
4040cd " ${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} "
4444done
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} "
4848done
4949
5050rm -f bin/bootstrap.sh
Original file line number Diff line number Diff line change @@ -30,7 +30,7 @@ output_dir="${3%/}"
3030mkdir -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
3636docker 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
Original file line number Diff line number Diff line change 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
1919docker 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
You can’t perform that action at this time.
0 commit comments