forked from arkhipov/temporal_tables
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
25 lines (25 loc) · 1010 Bytes
/
.travis.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
dist: trusty
sudo: required
language: c
env:
- PG=10
- PG=9.6
- PG=9.5
- PG=9.4
- PG=9.3
- PG=9.2
install:
- sudo sh -c 'echo "deb http://apt.postgresql.org/pub/repos/apt/ $(lsb_release -cs)-pgdg main 10" > /etc/apt/sources.list.d/pgdg.list'
- wget --quiet -O - https://www.postgresql.org/media/keys/ACCC4CF8.asc | sudo apt-key add -
- PGPORT=5440
- sudo /etc/init.d/postgresql stop
- sudo apt-get -o Dir::Etc::sourcelist="/etc/apt/sources.list.d/pgdg.list" -o Dir::Etc::sourceparts='-' -o APT::Get::List-Cleanup='0' update
- sudo apt-get install postgresql-$PG postgresql-server-dev-$PG
- sudo pg_createcluster -p $PGPORT $PG test
- sudo sed -i '1i local all all trust' /etc/postgresql/$PG/test/pg_hba.conf
- sudo /etc/init.d/postgresql start $PG
script:
- psql -p $PGPORT -U postgres postgres -xA -c 'select version()'
- make
- sudo make install
- make installcheck PGUSER=postgres PGPORT=$PGPORT || (cat regression.diffs && false)