summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCarlos Garnacho <carlosg@gnome.org>2020-12-10 13:09:31 +0100
committerCarlos Garnacho <carlosg@gnome.org>2020-12-23 17:21:03 +0100
commit340634d88a90bdf0e4d01ba50b9a639d8fa659af (patch)
tree6ce8eab8148a0595fb17945e2654b82612a615d6
parentad23d572a6e68257f88ef4704c3971eb42a55497 (diff)
downloadtracker-340634d88a90bdf0e4d01ba50b9a639d8fa659af.tar.gz
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.
-rw-r--r--.gitlab-ci.yml9
1 files 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:
- |