forked from bashtanov/argm
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
34 lines (28 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
# Heavily influenced by https://github.com/aggregateknowledge/postgresql-hll/blob/master/.travis.yml
language: c
env:
- PGVERSION=9.4
- PGVERSION=9.5
- PGVERSION=9.6
before_script:
- curl https://www.postgresql.org/media/keys/ACCC4CF8.asc | sudo apt-key add -
- echo "deb http://apt.postgresql.org/pub/repos/apt/ `lsb_release -sc`-pgdg main" | sudo tee -a /etc/apt/sources.list
- sudo apt-get update
- sudo /etc/init.d/postgresql stop
- sudo apt-get purge -y postgresql-common postgresql-client-common
- apt-cache search postgresql-server-dev
- sudo apt-get install -y postgresql-${PGVERSION}
- sudo apt-get install -y postgresql-server-dev-${PGVERSION}
- export PATH=/usr/lib/postgresql/${PGVERSION}/bin:$PATH
- sudo su postgres -c "pg_createcluster ${PGVERSION} main --start || true"
- sudo /etc/init.d/postgresql start ${PGVERSION}
- sudo su postgres -c "createuser --superuser --createdb --createrole `id -un`"
script:
- make
- sudo make install
- make installcheck
after_failure:
- find . -name regression.out -exec cat '{}' \;
- find . -name regression.diffs -exec cat '{}' \;
- find . -name argm.out -exec cat '{}' \;
- find . -name anyold.out -exec cat '{}' \;