forked from xocolatl/periods
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
38 lines (30 loc) · 866 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
26
27
28
29
30
31
32
33
34
35
36
37
38
dist: bionic
sudo: required
language: c
compiler:
- gcc
env:
matrix:
- PG=12 COMPONENT=12
- PG=11
- PG=10
- PG=9.6
- PG=9.5
before_install:
- sudo /etc/init.d/postgresql stop
- sudo apt-get -y --purge remove postgresql libpq-dev libpq5 postgresql-client-common postgresql-common
- sudo rm -rf /var/lib/postgresql
- |
if [ "$COMPONENT" ]; then
sudo sed -i -e "s/main/main $COMPONENT/" /etc/apt/sources.list.d/pgdg*.list
fi
- sudo apt-get update
- sudo apt-get -y -o Dpkg::Options::=--force-confdef -o Dpkg::Options::="--force-confnew" ${PGREPO:+-t "$PGREPO"} install postgresql-${PG:?} postgresql-server-dev-${PG:?} postgresql-contrib-${PG:?}
before_script:
- sudo -u postgres createuser -s "$USER"
script:
- make
- sudo make install
- make installcheck
after_script:
- cat regression.diffs || true