Skip to content

Commit

Permalink
Fixes Hub CI by bumping postgres to postgres 15 and node to 18.x
Browse files Browse the repository at this point in the history
With the base image of ubuntu bumped in plumbing CI,
postgres was not getting installed, hence this patch
bumps the postgres version in Hub CI to as the new
version of ubuntu supports postgres 15 and above

Also in this patch node version is bumped to 18.x

Signed-off-by: Puneet Punamiya ppunamiy@redhat.com
  • Loading branch information
PuneetPunamiya committed Oct 17, 2023
1 parent d0ee8cd commit e931b99
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions test/presubmit-tests.sh
Original file line number Diff line number Diff line change
Expand Up @@ -57,10 +57,13 @@ err() {
install-node() {
info Installing node

curl -sL https://deb.nodesource.com/setup_17.x | bash -
curl -sL https://deb.nodesource.com/setup_18.x | bash -
apt-get install -y nodejs

node --version

apt-get install -y npm
npm --version
}

ui-unittest() {
Expand All @@ -78,9 +81,9 @@ install-postgres() {
wget --quiet -O - https://www.postgresql.org/media/keys/ACCC4CF8.asc | apt-key add -
sh -c 'echo "deb http://apt.postgresql.org/pub/repos/apt/ `lsb_release -cs`-pgdg main" >> /etc/apt/sources.list.d/pgdg.list'
apt-get update
apt-get -y install postgresql-13
apt-get -y install postgresql-15
service postgresql start
pg_ctlcluster 13 main start
pg_ctlcluster 15 main start
}

set-pg-passwd() {
Expand Down

0 comments on commit e931b99

Please sign in to comment.