mirror of https://github.com/citusdata/citus.git
skip version check for pg15 in CI
parent
2b0e3376d0
commit
82d473e952
|
@ -10,6 +10,12 @@ source ci/ci_helpers.sh
|
||||||
# read pg major version, error if not provided
|
# read pg major version, error if not provided
|
||||||
PG_MAJOR=${PG_MAJOR:?please provide the postgres major version}
|
PG_MAJOR=${PG_MAJOR:?please provide the postgres major version}
|
||||||
|
|
||||||
|
EXTRA_CONFIGURE_FLAGS=
|
||||||
|
if [ $PG_MAJOR -eq 15 ]
|
||||||
|
then
|
||||||
|
EXTRA_CONFIGURE_FLAGS+='--without-pg-version-check'
|
||||||
|
fi
|
||||||
|
|
||||||
# get codename from release file
|
# get codename from release file
|
||||||
. /etc/os-release
|
. /etc/os-release
|
||||||
codename=${VERSION#*(}
|
codename=${VERSION#*(}
|
||||||
|
@ -33,7 +39,7 @@ build_ext() {
|
||||||
# do everything in a subdirectory to avoid clutter in current directory
|
# do everything in a subdirectory to avoid clutter in current directory
|
||||||
mkdir -p "${builddir}" && cd "${builddir}"
|
mkdir -p "${builddir}" && cd "${builddir}"
|
||||||
|
|
||||||
CFLAGS=-Werror "${basedir}/configure" PG_CONFIG="/usr/lib/postgresql/${pg_major}/bin/pg_config" --enable-coverage --with-security-flags
|
CFLAGS=-Werror "${basedir}/configure" PG_CONFIG="/usr/lib/postgresql/${pg_major}/bin/pg_config" --enable-coverage --with-security-flags $EXTRA_CONFIGURE_FLAGS
|
||||||
|
|
||||||
installdir="${builddir}/install"
|
installdir="${builddir}/install"
|
||||||
make -j$(nproc) && mkdir -p "${installdir}" && { make DESTDIR="${installdir}" install-all || make DESTDIR="${installdir}" install ; }
|
make -j$(nproc) && mkdir -p "${installdir}" && { make DESTDIR="${installdir}" install-all || make DESTDIR="${installdir}" install ; }
|
||||||
|
|
Loading…
Reference in New Issue