Skip to content

Commit

Permalink
Include reporter and main in the image
Browse files Browse the repository at this point in the history
  • Loading branch information
kazk committed Aug 2, 2022
1 parent 932541b commit f419db5
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
7 changes: 6 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -31,5 +31,10 @@ RUN set -ex; \
useradd -m codewarrior; \
mkdir /workspace; \
chown -R codewarrior: /workspace;
USER codewarrior
WORKDIR /workspace

# TODO Maintain reporter in a separate repo
COPY workspace/codewars_reporter.c .
COPY workspace/tests.c .

USER codewarrior
5 changes: 0 additions & 5 deletions bin/run
Original file line number Diff line number Diff line change
Expand Up @@ -19,10 +19,5 @@ C=$($CONTAINER_ENGINE container create --rm -w $W $IMAGE_TAG sh -c "gcc -O2 solu
# example/solution_tests.c
$CONTAINER_ENGINE container cp examples/${1:-multiply}/. $C:$W

# Copy files common to all setups
# common/codewars_reporter.c
# common/tests.c
$CONTAINER_ENGINE container cp common/. $C:$W

# Run tests
$CONTAINER_ENGINE container start --attach $C
File renamed without changes.
File renamed without changes.

0 comments on commit f419db5

Please sign in to comment.