Skip to content

Commit cd8aa53

Browse files
committed
Merge #215: [CI-RUNNER] Output the build log directly to the STDOUT
d36b85d Remove useless whitespace (marpme) 8e12e01 Remove duplicated code (info logs) (marpme) 2f96ca4 Write build stdout/stderr to the build.log and the stdout (marpme) b6f0021 For CI output everything directly to the stdout (marpme)
2 parents 88616f7 + d36b85d commit cd8aa53

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

bin/gbuild

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -161,7 +161,11 @@ EOF" if build_desc["sudo"] and @options[:allow_sudo]
161161
end
162162

163163
info "Running build script (log in var/build.log)"
164-
system! "on-target setarch #{@arches[arch]} bash -x < var/build-script > var/build.log 2>&1"
164+
if ENV["CI"]
165+
system! "on-target setarch #{@arches[arch]} bash -x < var/build-script 2>&1 | tee var/build.log"
166+
else
167+
system! "on-target setarch #{@arches[arch]} bash -x < var/build-script > var/build.log 2>&1"
168+
end
165169
end
166170

167171
################################

0 commit comments

Comments
 (0)