[libsoup/wip/ci] Actually create the build directory as the target user instead of root
- From: Claudio Saavedra <csaavedra src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [libsoup/wip/ci] Actually create the build directory as the target user instead of root
- Date: Wed, 15 Aug 2018 11:24:57 +0000 (UTC)
commit f9747ba395eef232cb224473a71a2d0659af5dae
Author: Claudio Saavedra <csaavedra igalia com>
Date: Wed Aug 15 11:24:01 2018 +0000
Actually create the build directory as the target user instead of root
.gitlab-ci.yml | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
---
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index a115bc88..d2710039 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -3,7 +3,7 @@ image: fedora:28
variables:
ADDITIONAL_DEPENDENCIES: which gtk-doc libpsl-devel make httpd php php-xmlrpc mod_ssl redhat-rpm-config
USER: user
- BUILDDIR: build
+ BUILDDIR: $CI_PROJECT_DIR/build
build:
tags:
@@ -15,7 +15,8 @@ build:
- dnf install -y --nogpgcheck $ADDITIONAL_DEPENDENCIES
script:
- adduser $USER
- - mkdir -p $BUILDDIR && cd $BUILDDIR
+ - su -c 'mkdir -p $BUILDDIR' $USER
+ - cd $BUILDDIR
- su -c $CI_PROJECT_DIR/autogen.sh $USER
- su -c make $USER
- su -c 'make check' $USER
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]