Skip to content

Commit

Permalink
Merge branch 'develop'
Browse files Browse the repository at this point in the history
  • Loading branch information
mtuncer committed Sep 2, 2019
2 parents 948a9b9 + b042c36 commit ab5e6cb
Show file tree
Hide file tree
Showing 5 changed files with 12 additions and 17 deletions.
2 changes: 1 addition & 1 deletion travis/config_and_start_cluster
Original file line number Diff line number Diff line change
Expand Up @@ -19,4 +19,4 @@ then
fi

# Start cluster
sudo pg_ctlcluster "${PGVERSION}" test start
pg_ctlcluster "${PGVERSION}" test start
4 changes: 2 additions & 2 deletions travis/install_custom_pg
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,8 @@ if [ "$(ls -A postgresql)" ]; then
git -C postgresql pull
else
pgmajornum="${PGVERSION%%.*}"
if [ "${pgmajornum}" -gt '11' ]; then
# eleven is highest stable build; use master for higher
if [ "${pgmajornum}" -gt '12' ]; then
# twelve is highest stable build; use master for higher
gitref="master"
elif [ "${pgmajornum}" -gt '9' ]; then
gitref="REL_${PGVERSION}_STABLE"
Expand Down
6 changes: 1 addition & 5 deletions travis/install_pg
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,7 @@ fi
# always install postgresql-common
packages="postgresql-common postgresql-contrib-$PGVERSION libedit-dev libpam0g-dev libselinux1-dev"

# we set PGVERSION to 10x of the Citus version when testing Citus, so
# only install PostgreSQL proper if it's 10 or lower
if [ "${PGVERSION//./}" -le "100" ]; then
packages="$packages postgresql-$PGVERSION postgresql-server-dev-$PGVERSION"
fi
packages="$packages postgresql-$PGVERSION postgresql-server-dev-$PGVERSION"

# shellcheck disable=SC2086
sudo apt-get -y -o Dpkg::Options::="--force-confdef" -o Dpkg::Options::="--force-confold" install $packages
4 changes: 1 addition & 3 deletions travis/nuke_pg
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,7 @@ set -eux
sudo service postgresql stop

# remove existing installation of postgresql
if [ -n "${USE_CUSTOM_PG:-}" ]; then
sudo apt-get --purge -y remove postgresql-*
fi
sudo apt-get --purge -y remove postgresql-*

# and make sure they don't come back
echo 'exit 0' | sudo tee /etc/init.d/postgresql
Expand Down
13 changes: 7 additions & 6 deletions travis/setup_apt
Original file line number Diff line number Diff line change
Expand Up @@ -6,16 +6,17 @@ set -eux

# import the PostgreSQL repository key
sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys ACCC4CF8
sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 7FCC7D46ACCC4CF8

# wtf, Google?
sudo rm /etc/apt/sources.list.d/google-chrome*
sudo rm -f /etc/apt/sources.list.d/google-chrome*
sudo rm -f /etc/apt/sources.list.d/pgdg.list

# add the PostgreSQL 9.5 and 10 repositories
sudo sh -c 'echo "deb http://apt.postgresql.org/pub/repos/apt/ $(lsb_release -cs)-pgdg main 9.5" >> /etc/apt/sources.list.d/postgresql.list'
sudo sh -c 'echo "deb http://apt.postgresql.org/pub/repos/apt/ $(lsb_release -cs)-pgdg main 10" >> /etc/apt/sources.list.d/postgresql.list'
# add the PostgreSQL 12 repository
sudo sh -c 'echo "deb http://apt.postgresql.org/pub/repos/apt/ $(lsb_release -cs)-pgdg main 12" >> /etc/apt/sources.list.d/postgresql.list'

# need testing repository after version 10
if [ "${PGVERSION%%.*}" -gt '10' ]; then
# need testing repository after version 12
if [ "${PGVERSION%%.*}" -gt '12' ]; then
# add a PostgreSQL testing repository
sudo sh -Ec 'echo "deb http://apt.postgresql.org/pub/repos/apt/ $(lsb_release -cs)-pgdg-testing main ${PGVERSION}" >> /etc/apt/sources.list.d/postgresql.list'

Expand Down

0 comments on commit ab5e6cb

Please sign in to comment.