Skip to content

Commit

Permalink
Extend Travis testing
Browse files Browse the repository at this point in the history
  • Loading branch information
AMDmi3 committed Feb 16, 2020
1 parent c0a4000 commit 44f13f7
Showing 1 changed file with 26 additions and 12 deletions.
38 changes: 26 additions & 12 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,18 +1,32 @@
language: c
dist: xenial
dist: bionic
sudo: required
compiler:
- gcc
- clang
addons:
postgresql: "10"
apt:
packages:
- postgresql-server-dev-10
env:
matrix:
- LIBVERSION=master
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
compiler: gcc
- env: POSTGRESQL=12 LIBVERSION=master
compiler: clang
# PostgreSQL versions
- env: POSTGRESQL=11 LIBVERSION=master
- env: POSTGRESQL=10 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"

- wget -qO- https://github.com/repology/libversion/archive/$LIBVERSION.tar.gz | tar -xzf- && ( cd libversion-$LIBVERSION && cmake . && make && sudo make install && sudo ldconfig )
script:
- make
Expand Down

0 comments on commit 44f13f7

Please sign in to comment.