Skip to content

Commit f419db5

Browse files
committed
Include reporter and main in the image
1 parent 932541b commit f419db5

File tree

4 files changed

+6
-6
lines changed

4 files changed

+6
-6
lines changed

Dockerfile

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,5 +31,10 @@ RUN set -ex; \
3131
useradd -m codewarrior; \
3232
mkdir /workspace; \
3333
chown -R codewarrior: /workspace;
34-
USER codewarrior
3534
WORKDIR /workspace
35+
36+
# TODO Maintain reporter in a separate repo
37+
COPY workspace/codewars_reporter.c .
38+
COPY workspace/tests.c .
39+
40+
USER codewarrior

bin/run

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -19,10 +19,5 @@ C=$($CONTAINER_ENGINE container create --rm -w $W $IMAGE_TAG sh -c "gcc -O2 solu
1919
# example/solution_tests.c
2020
$CONTAINER_ENGINE container cp examples/${1:-multiply}/. $C:$W
2121

22-
# Copy files common to all setups
23-
# common/codewars_reporter.c
24-
# common/tests.c
25-
$CONTAINER_ENGINE container cp common/. $C:$W
26-
2722
# Run tests
2823
$CONTAINER_ENGINE container start --attach $C
File renamed without changes.

0 commit comments

Comments
 (0)