Skip to content

Commit

Permalink
Bump DMD to 2.109.0 (#66)
Browse files Browse the repository at this point in the history
* Bump DMD to 2.109.0

* Condense RUN commands

* Remove mount and readonly flags
  • Loading branch information
BNAndras authored Jul 1, 2024
1 parent 8260d3c commit 6399d21
Show file tree
Hide file tree
Showing 6 changed files with 12 additions and 13 deletions.
16 changes: 8 additions & 8 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
FROM dlanguage/dmd:2.080.0

RUN apt-get update && \
apt-get install -y jq && \
apt-get purge --auto-remove -y && \
apt-get clean && \
rm -rf /var/lib/apt/lists/*

FROM ubuntu:24.04
RUN apt update && \
apt install jq wget -y && \
wget https://master.dl.sourceforge.net/project/d-apt/files/d-apt.list -O /etc/apt/sources.list.d/d-apt.list && \
apt update --allow-insecure-repositories && \
apt -y --allow-unauthenticated install --reinstall d-apt-keyring && \
apt update && \
apt install dmd-compiler dub -y
WORKDIR /opt/test-runner
COPY . .
ENTRYPOINT ["/opt/test-runner/bin/run.sh"]
1 change: 0 additions & 1 deletion bin/run-tests-in-docker.sh
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@ docker build --rm -t exercism/test-runner .
docker run \
--rm \
--network none \
--read-only \
--mount type=bind,src="${PWD}/tests",dst=/opt/test-runner/tests \
--mount type=tmpfs,dst=/tmp \
--workdir /opt/test-runner \
Expand Down
2 changes: 1 addition & 1 deletion tests/example-all-fail/expected_results.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"version": 1,
"status": "fail",
"message": "example_all_fail ~master: building configuration \"example_all_fail-test-library\"...\nLinking...\nRunning ./example_all_fail-test-library \ncore.exception.AssertError@source/example_all_fail.d(13): unittest failure\n1/1 unittests FAILED\nProgram exited with code 1"
"message": " Linking example_all_fail-test-library\n Running example_all_fail-test-library \ncore.exception.AssertError@source/example_all_fail.d(13): unittest failure\n1/1 modules FAILED unittests\nError Program exited with code 1"
}
2 changes: 1 addition & 1 deletion tests/example-empty-file/expected_results.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"version": 1,
"status": "error",
"message": "example_empty_file ~master: building configuration \"example_empty_file-test-library\"...\n\u001b[01;31m\u001b[Ksource/example_empty_file.d(8,13): Error: undefined identifier `isLeap`\u001b[m\u001b[K\n\u001b[01;31m\u001b[Ksource/example_empty_file.d(13,17): Error: undefined identifier `isLeap`\u001b[m\u001b[K\n\u001b[01;31m\u001b[Ksource/example_empty_file.d(16,16): Error: undefined identifier `isLeap`\u001b[m\u001b[K\n\u001b[01;31m\u001b[Ksource/example_empty_file.d(19,16): Error: undefined identifier `isLeap`\u001b[m\u001b[K\n\u001b[01;31m\u001b[Ksource/example_empty_file.d(22,17): Error: undefined identifier `isLeap`\u001b[m\u001b[K\n\u001b[01;31m\u001b[Ksource/example_empty_file.d(25,17): Error: undefined identifier `isLeap`\u001b[m\u001b[K\n\u001b[01;31m\u001b[Ksource/example_empty_file.d(28,16): Error: undefined identifier `isLeap`\u001b[m\u001b[K\n\u001b[01;31m\u001b[Ksource/example_empty_file.d(31,16): Error: undefined identifier `isLeap`\u001b[m\u001b[K\n\u001b[01;31m\u001b[Ksource/example_empty_file.d(34,17): Error: undefined identifier `isLeap`\u001b[m\u001b[K\n/dlang/dmd-2.080.0/linux/bin64/dmd failed with exit code 1."
"message": "\u001b[01;31m\u001b[Ksource/example_empty_file.d(8,13): Error: undefined identifier `isLeap`\u001b[m\u001b[K\n\u001b[01;31m\u001b[Ksource/example_empty_file.d(13,17): Error: undefined identifier `isLeap`\u001b[m\u001b[K\n\u001b[01;31m\u001b[Ksource/example_empty_file.d(16,16): Error: undefined identifier `isLeap`\u001b[m\u001b[K\n\u001b[01;31m\u001b[Ksource/example_empty_file.d(19,16): Error: undefined identifier `isLeap`\u001b[m\u001b[K\n\u001b[01;31m\u001b[Ksource/example_empty_file.d(22,17): Error: undefined identifier `isLeap`\u001b[m\u001b[K\n\u001b[01;31m\u001b[Ksource/example_empty_file.d(25,17): Error: undefined identifier `isLeap`\u001b[m\u001b[K\n\u001b[01;31m\u001b[Ksource/example_empty_file.d(28,16): Error: undefined identifier `isLeap`\u001b[m\u001b[K\n\u001b[01;31m\u001b[Ksource/example_empty_file.d(31,16): Error: undefined identifier `isLeap`\u001b[m\u001b[K\n\u001b[01;31m\u001b[Ksource/example_empty_file.d(34,17): Error: undefined identifier `isLeap`\u001b[m\u001b[K\nError /usr/bin/dmd failed with exit code 1."
}
2 changes: 1 addition & 1 deletion tests/example-partial-fail/expected_results.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"version": 1,
"status": "fail",
"message": "example_partial_fail ~master: building configuration \"example_partial_fail-test-library\"...\nLinking...\nRunning ./example_partial_fail-test-library \ncore.exception.AssertError@source/example_partial_fail.d(38): unittest failure\n1/1 unittests FAILED\nProgram exited with code 1"
"message": " Linking example_partial_fail-test-library\n Running example_partial_fail-test-library \ncore.exception.AssertError@source/example_partial_fail.d(38): unittest failure\n1/1 modules FAILED unittests\nError Program exited with code 1"
}
2 changes: 1 addition & 1 deletion tests/example-syntax-error/expected_results.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"version": 1,
"status": "error",
"message": "example_syntax_error ~master: building configuration \"example_syntax_error-test-library\"...\n\u001b[01;31m\u001b[Ksource/example_syntax_error.d(3,24): Error: found `uint` when expecting `)`\u001b[m\u001b[K\n\u001b[01;31m\u001b[Ksource/example_syntax_error.d(3,29): Error: semicolon expected following function declaration\u001b[m\u001b[K\n\u001b[01;31m\u001b[Ksource/example_syntax_error.d(3,33): Error: no identifier for declarator `year`\u001b[m\u001b[K\n\u001b[01;31m\u001b[Ksource/example_syntax_error.d(3,33): Error: declaration expected, not `)`\u001b[m\u001b[K\n\u001b[01;31m\u001b[Ksource/example_syntax_error.d(13,5): Error: declaration expected, not `assert`\u001b[m\u001b[K\n\u001b[01;31m\u001b[Ksource/example_syntax_error.d(18,9): Error: declaration expected, not `assert`\u001b[m\u001b[K\n\u001b[01;31m\u001b[Ksource/example_syntax_error.d(21,9): Error: declaration expected, not `assert`\u001b[m\u001b[K\n\u001b[01;31m\u001b[Ksource/example_syntax_error.d(24,9): Error: declaration expected, not `assert`\u001b[m\u001b[K\n\u001b[01;31m\u001b[Ksource/example_syntax_error.d(27,9): Error: declaration expected, not `assert`\u001b[m\u001b[K\n\u001b[01;31m\u001b[Ksource/example_syntax_error.d(30,9): Error: declaration expected, not `assert`\u001b[m\u001b[K\n\u001b[01;31m\u001b[Ksource/example_syntax_error.d(33,9): Error: declaration expected, not `assert`\u001b[m\u001b[K\n\u001b[01;31m\u001b[Ksource/example_syntax_error.d(36,9): Error: declaration expected, not `assert`\u001b[m\u001b[K\n\u001b[01;31m\u001b[Ksource/example_syntax_error.d(39,9): Error: declaration expected, not `assert`\u001b[m\u001b[K\n\u001b[01;31m\u001b[Ksource/example_syntax_error.d(41,1): Error: unrecognized declaration\u001b[m\u001b[K\n/dlang/dmd-2.080.0/linux/bin64/dmd failed with exit code 1."
"message": "\u001b[01;31m\u001b[Ksource/example_syntax_error.d(3,24): Error: found `uint` when expecting `)`\u001b[m\u001b[K\n\u001b[01;31m\u001b[Ksource/example_syntax_error.d(3,29): Error: semicolon expected following function declaration, not `year`\u001b[m\u001b[K\n\u001b[01;31m\u001b[Ksource/example_syntax_error.d(3,33): Error: no identifier for declarator `year`\u001b[m\u001b[K\n\u001b[01;31m\u001b[Ksource/example_syntax_error.d(3,33): Error: declaration expected, not `)`\u001b[m\u001b[K\n\u001b[01;31m\u001b[Ksource/example_syntax_error.d(13,5): Error: declaration expected, not `assert`\u001b[m\u001b[K\n\u001b[01;31m\u001b[Ksource/example_syntax_error.d(18,9): Error: declaration expected, not `assert`\u001b[m\u001b[K\n\u001b[01;31m\u001b[Ksource/example_syntax_error.d(21,9): Error: declaration expected, not `assert`\u001b[m\u001b[K\n\u001b[01;31m\u001b[Ksource/example_syntax_error.d(24,9): Error: declaration expected, not `assert`\u001b[m\u001b[K\n\u001b[01;31m\u001b[Ksource/example_syntax_error.d(27,9): Error: declaration expected, not `assert`\u001b[m\u001b[K\n\u001b[01;31m\u001b[Ksource/example_syntax_error.d(30,9): Error: declaration expected, not `assert`\u001b[m\u001b[K\n\u001b[01;31m\u001b[Ksource/example_syntax_error.d(33,9): Error: declaration expected, not `assert`\u001b[m\u001b[K\n\u001b[01;31m\u001b[Ksource/example_syntax_error.d(36,9): Error: declaration expected, not `assert`\u001b[m\u001b[K\n\u001b[01;31m\u001b[Ksource/example_syntax_error.d(39,9): Error: declaration expected, not `assert`\u001b[m\u001b[K\n\u001b[01;31m\u001b[Ksource/example_syntax_error.d(41,1): Error: unmatched closing brace\u001b[m\u001b[K\nError /usr/bin/dmd failed with exit code 1."
}

0 comments on commit 6399d21

Please sign in to comment.