Skip to content

Commit 080f6c6

Browse files
authored
Merge pull request #14 from CodinGame/allow-no-source-file
Allow no source file
2 parents b00bf1d + b33833f commit 080f6c6

File tree

3 files changed

+7
-8
lines changed

3 files changed

+7
-8
lines changed

Dockerfile

+4-5
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,9 @@
1-
FROM techio/maven3-builder:1.3
1+
FROM techio/maven3-builder:1.4
2+
3+
ENV TECHIO_RUN_DIR /project/answer
24

35
# 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
56
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
88

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

README.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -2,14 +2,14 @@
22

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

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.
66

77

88
# How to Use
99

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

12-
runner: techio/java-maven3-junit4-runner:1.1.3-java-8
12+
runner: techio/java-maven3-junit4-runner:1.1.4-java-8
1313

1414
## Example
1515

docker/junit-runner

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ executionExitCode=0
55
JARS_DIR="/project/target/jars"
66
WORKSPACE_DIR="/project/workspace"
77

8-
cd ${CG_RUN_DIR}
8+
cd ${TECHIO_RUN_DIR}
99

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

0 commit comments

Comments
 (0)