Skip to content

Commit

Permalink
Merge pull request #5 from TechDotIO/fix-compilation-error-does-not-fail
Browse files Browse the repository at this point in the history
Fix: compilation error should not succeed
  • Loading branch information
Sy1v4in authored Apr 9, 2018
2 parents 9586852 + 531ff14 commit 7dd69d9
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM gcc:7.1
FROM gcc:7.3

COPY entrypoint.sh /
COPY build.sh /project/build
Expand Down
6 changes: 3 additions & 3 deletions entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,12 @@ cd /project/target

# Compile
if make > /tmp/compilation_logs 2>&1; then
echo "CG> redirect-streams \"Test results\""
echo "TECHIO> redirect-streams \"Test results\""

# Execute test
"$@"
else
echo "CG> redirect-streams \"Compilation logs\""

echo "TECHIO> redirect-streams \"Compilation logs\""
cat /tmp/compilation_logs
echo "TECHIO> success false"
fi

0 comments on commit 7dd69d9

Please sign in to comment.