Skip to content
This repository was archived by the owner on Oct 16, 2024. It is now read-only.

Build on Trusty and Xenial #3

Open
wants to merge 4 commits into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
78 changes: 67 additions & 11 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ before_install:
- sudo apt-get -y --purge remove postgresql libpq-dev libpq5 postgresql-client-common postgresql-common
- sudo rm -rf /var/lib/postgresql
- wget --no-check-certificate --quiet -O - https://www.postgresql.org/media/keys/ACCC4CF8.asc | sudo apt-key add -
- sudo sh -c "echo deb http://apt.postgresql.org/pub/repos/apt/ trusty-pgdg main $PGVERSION >> /etc/apt/sources.list.d/postgresql.list"
- sudo sh -c "echo deb http://apt.postgresql.org/pub/repos/apt/ $DISTRO-pgdg main $PGVERSION >> /etc/apt/sources.list.d/postgresql.list"
- sudo apt-get update -qq
- sudo apt-get -y -o Dpkg::Options::=--force-confdef -o Dpkg::Options::="--force-confnew" install postgresql-$PGVERSION postgresql-server-dev-$PGVERSION
- sudo chmod 777 /etc/postgresql/$PGVERSION/main/pg_hba.conf
Expand All @@ -25,22 +25,78 @@ before_script:
- gcc -v
- createuser -U postgres -s travis


env:
matrix:
- PGVERSION=11
- PGVERSION=10
- PGVERSION=9.6
- PGVERSION=9.4


matrix:
include:
- name: "PG 9.4 trusty"
os: linux
dist: trusty
env:
- DISTRO=trusty
- PGVERSION=9.4
- name: "PG 9.6 trusty"
os: linux
dist: trusty
env:
- DISTRO=trusty
- PGVERSION=9.6
- name: "PG 10 trusty"
os: linux
dist: trusty
env:
- DISTRO=trusty
- PGVERSION=10
- name: "PG 11 trusty"
os: linux
dist: trusty
env:
- DISTRO=trusty
- PGVERSION=11
- name: "PG 9.4 xenial"
os: linux
dist: xenial
env:
- DISTRO=xenial
- PGVERSION=9.4
addons:
apt:
packages:
- gcc-4.8.5
- name: "PG 9.6 xenial"
os: linux
dist: xenial
env:
- DISTRO=xenial
- PGVERSION=9.6
addons:
apt:
packages:
- gcc-4.8.5
- name: "PG 10 xenial"
os: linux
dist: xenial
env:
- DISTRO=xenial
- PGVERSION=10
addons:
apt:
packages:
- gcc-4.8.5
- name: "PG 11 xenial"
os: linux
dist: xenial
env:
- DISTRO=xenial
- PGVERSION=11
addons:
apt:
packages:
- gcc-4.8.5

language: cpp
compiler:
- gcc

sudo: required
dist: trusty

script:
- make && sudo make install && make installcheck
Expand Down