Browse Source

For CI output everything directly to the stdout

pull/215/head
marpme 1 year ago
parent
commit
b6f00215fe
No account linked to committer's email address
1 changed files with 7 additions and 2 deletions
  1. 7
    2
      bin/gbuild

+ 7
- 2
bin/gbuild View File

@@ -160,8 +160,13 @@ EOF" if build_desc["sudo"] and @options[:allow_sudo]
script.puts build_desc["script"]
end

info "Running build script (log in var/build.log)"
system! "on-target setarch #{@arches[arch]} bash -x < var/build-script > var/build.log 2>&1"
if ENV["CI"]
info "Running build script"
system! "on-target setarch #{@arches[arch]} bash -x < var/build-script"
else
info "Running build script (log in var/build.log)"
system! "on-target setarch #{@arches[arch]} bash -x < var/build-script > var/build.log 2>&1"
end
end

################################

Loading…
Cancel
Save