[libsoup/wip/ci] Use a non-root user to build and run tests, remove changes to apache conf
- From: Claudio Saavedra <csaavedra src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [libsoup/wip/ci] Use a non-root user to build and run tests, remove changes to apache conf
- Date: Tue, 14 Aug 2018 15:19:38 +0000 (UTC)
commit 8d7716f678b63a22a38caa50006643799acba59d
Author: Claudio Saavedra <csaavedra igalia com>
Date: Tue Aug 14 18:11:01 2018 +0300
Use a non-root user to build and run tests, remove changes to apache conf
.gitlab-ci.yml | 11 +++++++----
tests/httpd.conf.in | 3 ---
2 files changed, 7 insertions(+), 7 deletions(-)
---
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index e75ad8ad..a47774d6 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -2,6 +2,7 @@ image: fedora:28
variables:
ADDITIONAL_DEPENDENCIES: which gtk-doc libpsl-devel make httpd php php-xmlrpc mod_ssl redhat-rpm-config
+ USER: user
build_stable:
before_script:
@@ -10,10 +11,12 @@ build_stable:
- dnf builddep -y --nogpgcheck libsoup
- dnf install -y --nogpgcheck $ADDITIONAL_DEPENDENCIES
script:
- - ./autogen.sh
- - make
- - make check
+ - adduser $USER
+ - su -c ./autogen.sh $USER
+ - su -c make $USER
+ - su -c 'make check' $USER
artifacts:
- paths:
+ paths:
+ - config.log
- tests/test-suite.log
when: on_failure
diff --git a/tests/httpd.conf.in b/tests/httpd.conf.in
index 56bc57af..31c36674 100644
--- a/tests/httpd.conf.in
+++ b/tests/httpd.conf.in
@@ -3,9 +3,6 @@
ServerName 127.0.0.1
Listen 127.0.0.1:47524
-User apache
-Group apache
-
DocumentRoot .
# The tests shut down apache with "graceful-stop", because that makes
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]