[tracker/tracker-2.3] ci: Avoid usage of `su` command
- From: Carlos Garnacho <carlosg src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [tracker/tracker-2.3] ci: Avoid usage of `su` command
- Date: Wed, 23 Dec 2020 16:24:42 +0000 (UTC)
commit 340634d88a90bdf0e4d01ba50b9a639d8fa659af
Author: Carlos Garnacho <carlosg gnome org>
Date: Thu Dec 10 13:09:31 2020 +0100
ci: Avoid usage of `su` command
Adapt to https://gitlab.gnome.org/GNOME/tracker-oci-images/-/merge_requests/28.
We no longer can (nor need to, really) switch users with `su`. Drop these
calls, and account for the changes of $CWD in the course of the issued commands.
.gitlab-ci.yml | 9 +++++----
1 file changed, 5 insertions(+), 4 deletions(-)
---
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index abe12c45a..951db8f94 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -18,15 +18,16 @@ stages:
stage: test
script:
- - su tracker -c 'mkdir build'
- - su tracker -c 'cd build; meson .. -Db_lto=true'
- - su tracker -c 'cd build; ninja'
+ - mkdir build
+ - cd build
+ - meson .. -Db_lto=true
+ - ninja
- |
# Remove the many "CI_" variables from the environment. Meson dumps the
# whole environment for every failed test, and that gives a whole
# screenful of junk each time unless we strip these.
unset $(env|grep -o '^CI_[^=]*')
- su tracker -c 'cd build; env LANG=C.UTF-8 LC_ALL=C.UTF-8 eatmydata meson test --print-errorlogs
${MESON_TEST_EXTRA_ARGS}'
+ env LANG=C.UTF-8 LC_ALL=C.UTF-8 eatmydata meson test --print-errorlogs ${MESON_TEST_EXTRA_ARGS}
after_script:
- |
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]