Skip to content

Commit 2fb43b9

Browse files
committed
Experiment with pipeline: create unprivileged user
1 parent 508a0fa commit 2fb43b9

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

.gitlab-ci.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,10 +17,11 @@ test:ubuntu-16.04:
1717
before_script:
1818
- echo "Current user id is `id`"
1919
- apt-get update && apt-get install -y sudo gcc make flex bison libreadline-dev zlib1g-dev openjade libzstd-dev opensp docbook docbook-xml docbook-xsl libxml2-utils xsltproc python-dev libicu-dev
20+
- id -u postgres || adduser --disabled-login --gecos "Postgres" postgres
2021
script:
2122
- ./configure --prefix=/opt/pgproee --with-zstd --with-icu --with-python
2223
- make -j $CORES world
23-
- make check-world
24+
- sudo -u postgres make check-world
2425
after_script:
2526
- cat src/test/regress/log/initdb.log
2627
when: always

0 commit comments

Comments
 (0)