Skip to content

Commit

Permalink
Merge pull request #3 from codewars/include-reporter
Browse files Browse the repository at this point in the history
  • Loading branch information
kazk authored Aug 2, 2022
2 parents a0edaff + f419db5 commit 309fcb7
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/push-image.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ on:
- "*"

jobs:
test:
build_and_push_image:
runs-on: ubuntu-latest
if: ${{ github.repository == 'codewars/riscv' }}
permissions:
Expand Down
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 309fcb7

Please sign in to comment.