Skip to content

Commit

Permalink
Merge pull request #14 from CodinGame/allow-no-source-file
Browse files Browse the repository at this point in the history
Allow no source file
  • Loading branch information
Sy1v4in authored Jun 5, 2017
2 parents b00bf1d + b33833f commit 080f6c6
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 8 deletions.
9 changes: 4 additions & 5 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,10 +1,9 @@
FROM techio/maven3-builder:1.3
FROM techio/maven3-builder:1.4

ENV TECHIO_RUN_DIR /project/answer

# Copy files
COPY target/java-maven3-junit4-runner-0.0.1-SNAPSHOT-jar-with-dependencies.jar /usr/src/codingame/junit-runner/junit-runner.jar
COPY docker/junit-runner /usr/src/codingame/junit-runner/

ENV CG_RUN_DIR /project/answer
COPY target/java-maven3-junit4-runner-0.0.1-SNAPSHOT-jar-with-dependencies.jar /usr/src/codingame/junit-runner/junit-runner.jar

ENTRYPOINT ["/usr/src/codingame/junit-runner/junit-runner"]

4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,14 @@

First, this runner compiles the project and generate all jars (project + dependencies).

At each play, it compiles user's answer using `javac` and run the specified testcase using junit4.
At each play, it compiles user's answer using `javac` and run the specified testcase using junit4.


# How to Use

To use this runner for your project, edit the `codingame.yml` file and add the following lines to your project:

runner: techio/java-maven3-junit4-runner:1.1.3-java-8
runner: techio/java-maven3-junit4-runner:1.1.4-java-8

## Example

Expand Down
2 changes: 1 addition & 1 deletion docker/junit-runner
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ executionExitCode=0
JARS_DIR="/project/target/jars"
WORKSPACE_DIR="/project/workspace"

cd ${CG_RUN_DIR}
cd ${TECHIO_RUN_DIR}

classpath=$(echo ${JARS_DIR}/*.jar | tr ' ' ':')

Expand Down

0 comments on commit 080f6c6

Please sign in to comment.