Skip to content

Commit

Permalink
Update test images (#40)
Browse files Browse the repository at this point in the history
As we are separating the builds for each pg major, we needed to add some
additional packages to some of the images to be able to pass configure
and run tests.
  • Loading branch information
SaitTalhaNisanci authored Aug 26, 2020
1 parent 57da3c2 commit 21c4335
Show file tree
Hide file tree
Showing 4 changed files with 25 additions and 0 deletions.
6 changes: 6 additions & 0 deletions circleci/images/citusupgradetester/files/sbin/install-extdeps
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,12 @@ echo "deb http://apt.postgresql.org/pub/repos/apt/ ${codename}-pgdg main" > \
echo "Installing server-dev packages..." >&2
apt-get update && apt-get install -y --no-install-recommends postgresql-server-dev-$PG_MAJOR

# we need autoconf and build-essential for running the tests
# we need other libraries for configure to pass, even though we could use
# --without-libcurl while configuring, we prefer this for now.
apt-get install -y autoconf build-essential libcurl4-openssl-dev libicu-dev \
libreadline-dev libselinux1-dev libxslt-dev libssl-dev

# build list of postgres
echo "Installing postgres packages..." >&2
apt-get install -y --no-install-recommends postgresql-$PG_MAJOR
Expand Down
6 changes: 6 additions & 0 deletions circleci/images/exttester/files/sbin/install-testdeps
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,12 @@ EOF
echo "Installing tools for testing PostgreSQL extensions..." >&2
apt-get update && apt-get install -y --no-install-recommends make postgresql-common perl libcurl3 "postgresql-${PG_MAJOR}" "postgresql-server-dev-${PG_MAJOR}"

# we need autoconf and build-essential for running the tests
# we need other libraries for configure to pass, even though we could use
# --without-libcurl while configuring, we prefer this for now.
apt-get install -y autoconf build-essential libcurl4-openssl-dev \
libicu-dev libreadline-dev libselinux1-dev libxslt-dev libssl-dev

# Give permission for usr so that circleci can write citus artifacts
chmod o+w -R /usr/

Expand Down
7 changes: 7 additions & 0 deletions circleci/images/failtester/files/sbin/install-testdeps
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,13 @@ EOF
echo "Installing tools for testing PostgreSQL extensions..." >&2
apt-get update && apt-get install -y --no-install-recommends make postgresql-common \
perl libcurl3 "postgresql-${PG_MAJOR}" "postgresql-server-dev-${PG_MAJOR}"

# we need autoconf and build-essential for running the tests
# we need other libraries for configure to pass, even though we could use
# --without-libcurl while configuring, we prefer this for now.
apt-get install -y autoconf build-essential libcurl4-openssl-dev \
libicu-dev libreadline-dev libselinux1-dev libxslt-dev libssl-dev


echo "Installing tools for failure testing..." >&2
pip3 install -Ir /tmp/etc/requirements.txt
Expand Down
6 changes: 6 additions & 0 deletions circleci/images/pgupgradetester/files/sbin/install-testdeps
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,12 @@ sd_pkgs=( "${pg_majors[@]/#/postgresql-server-dev-}" )
pg_pkgs=( "${pg_majors[@]/#/postgresql-}" )
apt-get update && apt-get install -y --no-install-recommends make postgresql-common perl libcurl3 "${sd_pkgs[@]}" "${pg_pkgs[@]}"

# we need autoconf and build-essential for running the tests
# we need other libraries for configure to pass, even though we could use
# --without-libcurl while configuring, we prefer this for now.
apt-get install -y autoconf build-essential libcurl4-openssl-dev \
libicu-dev libreadline-dev libselinux1-dev libxslt-dev libssl-dev

echo "Installing tools for failure testing..." >&2
pip install -Ir /tmp/etc/requirements.txt

Expand Down

0 comments on commit 21c4335

Please sign in to comment.