Skip to content
This repository has been archived by the owner on May 31, 2023. It is now read-only.

Adding basic travis.yml #1

Open
wants to merge 1 commit into
base: master
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
51 changes: 51 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
sudo: required
dist: trusty
language: c
matrix:
include:
- addons:
postgresql: 9.3
env:
- POSTGRESQL=9.3
install:
- sudo apt-get install postgresql-server-dev-9.3
- sudo make install
- addons:
postgresql: 9.4
env:
- POSTGRESQL=9.4
install:
- sudo apt-get install postgresql-server-dev-9.4
- sudo make install
- addons:
postgresql: 9.5
install:
- sudo apt-get install postgresql-server-dev-9.5
- sudo make install
env:
- POSTGRESQL=9.5
- addons:
postgresql: 9.6
install:
- sudo apt-get install postgresql-server-dev-9.6
- sudo make install
env:
- POSTGRESQL=9.6
- # addons: postgresql: 10
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-contrib postgresql-client
- sudo apt-get install postgresql-server-dev-10
- sudo sh -c 'echo "port=5432" >> /etc/postgresql/10/main/postgresql.conf'
- sudo pg_ctlcluster 10 main restart
- sudo -u postgres psql -c "create user travis with superuser";
- sudo make install
env:
- POSTGRESQL=10
script:
- make installcheck
after_failure:
- cat regression.diffs