File tree 3 files changed +42
-4
lines changed
3 files changed +42
-4
lines changed Original file line number Diff line number Diff line change @@ -10,3 +10,18 @@ def test_setup_teardown():
10
10
def test_fixture (tmp_postgres ):
11
11
pgdata , con_str = tmp_postgres
12
12
postgresql .psql (f'-d "{ con_str } " -c "select version()"' )
13
+
14
+
15
+ def test_default_extension (tmp_postgres ):
16
+ pgdata , con_str = tmp_postgres
17
+ postgresql .psql (f'-d "{ con_str } " -c "CREATE EXTENSION hstore;"' )
18
+
19
+
20
+ def test_uuid_ossp_extension (tmp_postgres ):
21
+ pgdata , con_str = tmp_postgres
22
+ postgresql .psql (f'-d "{ con_str } " -c \' CREATE EXTENSION "uuid-ossp";\' ' )
23
+
24
+
25
+ def test_xml2_extension (tmp_postgres ):
26
+ pgdata , con_str = tmp_postgres
27
+ postgresql .psql (f'-d "{ con_str } " -c "CREATE EXTENSION xml2;"' )
Original file line number Diff line number Diff line change 6
6
VERSION=13.4
7
7
fi
8
8
9
- yum install -y zlib-devel readline-devel
9
+ export DEBIAN_FRONTEND=noninteractive
10
+
11
+ sudo apt update
12
+ sudo apt install -y zlib1g-dev libreadline-dev libossp-uuid-dev libxml2-dev libxslt1-dev curl make gcc
10
13
curl -L -O https://ftp.postgresql.org/pub/source/v${VERSION} /postgresql-${VERSION} .tar.gz
11
14
12
15
tar -xzf postgresql-${VERSION} .tar.gz
13
16
cd postgresql-${VERSION}
14
- ./configure --prefix=` pwd` /../src/postgresql
15
- make -j 4
16
- make install
17
+ ./configure --prefix=` pwd` /../src/postgresql --with-ossp-uuid --with-libxml --with-libxslt
18
+ make -j 4 world-bin
19
+ make install-world-bin
17
20
cd ..
18
21
Original file line number Diff line number Diff line change
1
+ if [[ $1 =~ refs/tags/([0-9]+\. [0-9]+).* $ ]];
2
+ then
3
+ VERSION=${BASH_REMATCH[1]}
4
+ echo " Building ${VERSION} "
5
+ else
6
+ VERSION=13.4
7
+ fi
8
+
9
+ yum install -y dnf-plugins-core epel-release
10
+ yum config-manager --set-enabled powertools
11
+ yum install -y zlib-devel readline-devel uuid-devel libxml2-devel libxslt-devel
12
+ curl -L -O https://ftp.postgresql.org/pub/source/v${VERSION} /postgresql-${VERSION} .tar.gz
13
+
14
+ tar -xzf postgresql-${VERSION} .tar.gz
15
+ cd postgresql-${VERSION}
16
+ ./configure --prefix=` pwd` /../src/postgresql --with-ossp-uuid --with-libxml --with-libxslt
17
+ make -j 4 world-bin
18
+ make install-world-bin
19
+ cd ..
20
+
You can’t perform that action at this time.
0 commit comments