File tree 3 files changed +7
-8
lines changed
3 files changed +7
-8
lines changed Original file line number Diff line number Diff line change 1
- FROM techio/maven3-builder:1.3
1
+ FROM techio/maven3-builder:1.4
2
+
3
+ ENV TECHIO_RUN_DIR /project/answer
2
4
3
5
# Copy files
4
- COPY target/java-maven3-junit4-runner-0.0.1-SNAPSHOT-jar-with-dependencies.jar /usr/src/codingame/junit-runner/junit-runner.jar
5
6
COPY docker/junit-runner /usr/src/codingame/junit-runner/
6
-
7
- ENV CG_RUN_DIR /project/answer
7
+ COPY target/java-maven3-junit4-runner-0.0.1-SNAPSHOT-jar-with-dependencies.jar /usr/src/codingame/junit-runner/junit-runner.jar
8
8
9
9
ENTRYPOINT ["/usr/src/codingame/junit-runner/junit-runner" ]
10
-
Original file line number Diff line number Diff line change 2
2
3
3
First, this runner compiles the project and generate all jars (project + dependencies).
4
4
5
- At each play, it compiles user's answer using ` javac ` and run the specified testcase using junit4.
5
+ At each play, it compiles user's answer using ` javac ` and run the specified testcase using junit4.
6
6
7
7
8
8
# How to Use
9
9
10
10
To use this runner for your project, edit the ` codingame.yml ` file and add the following lines to your project:
11
11
12
- runner: techio/java-maven3-junit4-runner:1.1.3 -java-8
12
+ runner: techio/java-maven3-junit4-runner:1.1.4 -java-8
13
13
14
14
## Example
15
15
Original file line number Diff line number Diff line change @@ -5,7 +5,7 @@ executionExitCode=0
5
5
JARS_DIR=" /project/target/jars"
6
6
WORKSPACE_DIR=" /project/workspace"
7
7
8
- cd ${CG_RUN_DIR }
8
+ cd ${TECHIO_RUN_DIR }
9
9
10
10
classpath=$( echo ${JARS_DIR} /* .jar | tr ' ' ' :' )
11
11
You can’t perform that action at this time.
0 commit comments