summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVarac <varac@leap.se>2017-06-23 20:25:06 +0200
committerVarac <varac@leap.se>2017-06-23 21:19:15 +0200
commitd0f016cf8f3130c769a1de8be8d89790c0d8e511 (patch)
tree5a60c4afedb41a76024eab43e1f743facae2a53c
parent1078bffff8a0ac49c566c28f85ef8c9fe14f4e11 (diff)
Use stdbuf instead of unbuffer for CI timestamping
There are different reasons for this: - Using `stdbuf` will correctly return and non-zero exit code so when something breaks during CI `gitlab-runner` will mark the build as failed (Resolves: #8821). - `stdbuf` is already installed by the `coreutils` package and thus saves diskspace
-rw-r--r--.gitlab-ci.yml2
1 files changed, 1 insertions, 1 deletions
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index f515337f..3d622d1c 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -60,7 +60,7 @@ deploy_test:
except:
- master
script:
- - su -c '/usr/bin/unbuffer /bin/bash -o pipefail ./ci-build.sh | /usr/bin/ts' cirunner
+ - su -c 'set -o pipefail; stdbuf -oL -eL ./ci-build.sh | ts' cirunner
# Latest job will only run on the master branch, which means all merge requests
# that are created from branches don't get to deploy to the latest-ci server.