forked from postgres-plr/plr
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
37 lines (33 loc) · 1.19 KB
/
.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
26
27
28
29
30
31
32
33
34
35
36
37
os:
- linux
language: c
sudo : required
env:
- PG=12
- PG=11
- PG=10
- PG=9.6
- PG=9.5
before_script:
- sudo sh -c 'echo "deb http://apt.postgresql.org/pub/repos/apt/ $(lsb_release -cs)-pgdg main" > /etc/apt/sources.list.d/pgdg.list'
- wget --quiet -O - https://www.postgresql.org/media/keys/ACCC4CF8.asc | sudo apt-key add -
- sudo apt-get update -qq
- sudo apt-get install -qq r-base-dev acl
- sudo /etc/init.d/postgresql stop
- sudo apt-get remove --purge postgresql\*
- sudo rm -rf /etc/postgresql /var/lib/postgresql
- sudo apt-get install postgresql-$PG
- sudo apt-get install postgresql-server-dev-$PG
- echo 'local all postgres trust' | sudo tee /etc/postgresql/$PG/main/pg_hba.conf > /dev/null
- setfacl -Rm u:postgres:rwx,d:u:travis:rwx $HOME
- sudo pg_ctlcluster $PG main reload
script:
- sudo pg_lsclusters
- export USE_PGXS=1
- SHLIB_LINK=-lgcov PG_CPPFLAGS="-fprofile-arcs -ftest-coverage -O0" make
- sudo make install
- /usr/lib/postgresql/$PG/bin/pg_config
- psql --version
- make installcheck PGUSER=postgres || (cat regression.diffs && false)
after_success:
- bash <(curl -s https://codecov.io/bash)