Skip to content

Commit 309fcb7

Browse files
authored
Merge pull request #3 from codewars/include-reporter
2 parents a0edaff + f419db5 commit 309fcb7

File tree

5 files changed

+7
-7
lines changed

5 files changed

+7
-7
lines changed

.github/workflows/push-image.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ on:
88
- "*"
99

1010
jobs:
11-
test:
11+
build_and_push_image:
1212
runs-on: ubuntu-latest
1313
if: ${{ github.repository == 'codewars/riscv' }}
1414
permissions:

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)