Skip to content

Commit

Permalink
Further tweaks to travis build
Browse files Browse the repository at this point in the history
  • Loading branch information
AMDmi3 committed Feb 16, 2020
1 parent 4c48aec commit 0fac692
Showing 1 changed file with 26 additions and 19 deletions.
45 changes: 26 additions & 19 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,29 +3,36 @@ dist: bionic
sudo: required
matrix:
include:
# base
- env: POSTGRESQL=12 LIBVERSION=master
# libversion versions
- env: POSTGRESQL=12 LIBVERSION=3.0.1
- env: POSTGRESQL=12 LIBVERSION=3.0.0
# compilers
- env: POSTGRESQL=12 LIBVERSION=master
# supported libversion versions
- env: LIBVERSION=master
- env: LIBVERSION=3.0.1
- env: LIBVERSION=3.0.0
# different compilers
- env: LIBVERSION=master
compiler: gcc
- env: POSTGRESQL=12 LIBVERSION=master
- env: LIBVERSION=master
compiler: clang
# PostgreSQL versions
- env: POSTGRESQL=11 LIBVERSION=master
# different PostgreSQL versions
- env: POSTGRESQL=9.6 LIBVERSION=master
- env: POSTGRESQL=10 LIBVERSION=master
- env: POSTGRESQL=11 LIBVERSION=master
- env: POSTGRESQL=12 LIBVERSION=master
- env: POSTGRESQL=13 LIBVERSION=master
before_install:
- sudo service postgresql stop
- wget -q https://www.postgresql.org/media/keys/ACCC4CF8.asc -O - | sudo apt-key add -
- sudo sh -c 'echo "deb http://apt.postgresql.org/pub/repos/apt/ `lsb_release -cs`-pgdg main" >> /etc/apt/sources.list.d/pgdg.list'
- sudo apt-get update
- sudo apt-get install postgresql-$POSTGRESQL postgresql-server-dev-$POSTGRESQL
- sudo sed -i -e 's|#*port = .*|port = 5432|' /etc/postgresql/$POSTGRESQL/main/postgresql.conf
- sudo sed -i -e 's|peer|trust|' /etc/postgresql/$POSTGRESQL/main/pg_hba.conf
- sudo pg_ctlcluster $POSTGRESQL main restart
- sudo -u postgres createuser -s "$USER"
- |-
if [ -n "$POSTGRESQL" ]; then
sudo service postgresql stop
wget -q https://www.postgresql.org/media/keys/ACCC4CF8.asc -O - | sudo apt-key add -
sudo sh -c 'echo "deb http://apt.postgresql.org/pub/repos/apt/ `lsb_release -cs`-pgdg main" >> /etc/apt/sources.list.d/pgdg.list'
sudo apt-get update
sudo apt-get install postgresql-$POSTGRESQL postgresql-client-$POSTGRESQL postgresql-server-dev-$POSTGRESQL
sudo sed -i -e 's|#*port = .*|port = 5432|' /etc/postgresql/$POSTGRESQL/main/postgresql.conf
sudo sed -i -e 's|peer|trust|' /etc/postgresql/$POSTGRESQL/main/pg_hba.conf
sudo pg_ctlcluster $POSTGRESQL main restart
sudo -u postgres createuser -s "$USER" || true
else
sudo apt-get install postgresql-server-dev-10
fi
- wget -qO- https://github.com/repology/libversion/archive/$LIBVERSION.tar.gz | tar -xzf- && ( cd libversion-$LIBVERSION && cmake . && make && sudo make install && sudo ldconfig )
script:
Expand Down

0 comments on commit 0fac692

Please sign in to comment.