We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
0 parents commit a72579bCopy full SHA for a72579b
Dockerfile
@@ -0,0 +1,8 @@
1
+from gcc:6.3
2
+
3
+COPY entrypoint.sh /
4
+COPY build.sh /project/build
5
6
+RUN apt-get update && apt-get install -y cmake
7
8
+ENTRYPOINT ["/entrypoint.sh"]
build.sh
@@ -0,0 +1,6 @@
+#!/bin/bash
+cd /project/target
+cmake .
+make
entrypoint.sh
@@ -0,0 +1,18 @@
+# Copy answer to project
+cp -r /project/answer/* .
+# Compile
9
+if make > /tmp/compilation_logs 2>&1; then
10
+ echo "CG> redirect-streams \"Test results\""
11
12
+ # Execute test
13
+ "$@"
14
+else
15
+ echo "CG> redirect-streams \"Compilation logs\""
16
17
+ cat /tmp/compilation_logs
18
+fi
0 commit comments