Commit 249d2e37 authored by Thanassis Tsiodras's avatar Thanassis Tsiodras
Browse files

Only emit verbose build log for CircleCI - keep normal operation laconic.

parent 0fe65cde
......@@ -38,7 +38,11 @@ def build_me(folder):
root = os.getcwd()
os.chdir(folder)
try:
res = os.system("bash -c './bui*.sh 2>&1 | tee build.log ; exit ${PIPESTATUS[0]}'")
if os.getenv("CIRCLECI") is not None:
# CircleCI times out if it doesn't see stdout activity after 10min...
res = os.system("bash -c './bui*.sh 2>&1 | tee build.log ; exit ${PIPESTATUS[0]}'")
else:
res = os.system("./bui*.sh > build.log 2>&1 || exit 1")
if os.getenv("CIRCLE_ARTIFACTS") is not None:
os.system("cp build.log $CIRCLE_ARTIFACTS/" + folder + "_build.log")
if res != 0:
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment