forked from ossc-db/pg_bulkload
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
61 lines (56 loc) · 2.53 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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
before_install:
- psql --version
- sudo service postgresql stop
- sudo apt-get -y --purge remove postgresql libpq-dev libpq5 postgresql-client-common postgresql-common
- sudo rm -rf /var/lib/postgresql
- sudo apt-get update -qq
- sudo apt-get -y install bc libpam-dev libedit-dev
- git clone https://github.com/postgres/postgres.git postgres-dev
- cd postgres-dev
- if [ $PGVERSION = 11 ] ; then git checkout -b REL_11_STABLE origin/REL_11_STABLE; fi
- if [ $PGVERSION = 10 ] ; then git checkout -b REL_10_STABLE origin/REL_10_STABLE; fi
- if [ $PGVERSION = 9.6 ] ; then git checkout -b REL9_6_STABLE origin/REL9_6_STABLE; fi
- if [ $PGVERSION = 9.5 ] ; then git checkout -b REL9_5_STABLE origin/REL9_5_STABLE; fi
- if [ $PGVERSION = 9.4 ] ; then git checkout -b REL9_4_STABLE origin/REL9_4_STABLE; fi
- if [ $PGVERSION = 9.3 ] ; then git checkout -b REL9_3_STABLE origin/REL9_3_STABLE; fi
- if [ $PGVERSION = 9.2 ] ; then git checkout -b REL9_2_STABLE origin/REL9_2_STABLE; fi
- export POSTGRES_HOME=/home/travis/build/ossc-db/pg_bulkload/pgsql/$PGVERSION
- if [ $PGVERSION != 8.4 ] ; then ./configure --prefix=$POSTGRES_HOME; fi
- make -j 2
- make install
- echo 'export PATH=$PATH:$POSTGRES_HOME/bin' >> ~/.bashrc
- export PATH=$PATH:$POSTGRES_HOME/bin
- echo 'export PGDATA=/home/travis/build/ossc-db/pg_bulkload/pg_data/$PGVERSION' >> ~/.bashrc
- export PGDATA=/home/travis/build/ossc-db/pg_bulkload/pg_data/$PGVERSION
- cd /home/travis/build/ossc-db/pg_bulkload
- mkdir -p $PGDATA
- initdb --no-locale -D $PGDATA
- sudo echo "local all postgres trust" > $PGDATA/pg_hba.conf
- sudo echo "local all all trust" >> $PGDATA/pg_hba.conf
- sudo echo "host all all 127.0.0.1/32 trust" >> $PGDATA/pg_hba.conf
- sudo echo "host all all ::1/128 trust" >> $PGDATA/pg_hba.conf
- sudo echo "logging_collector = on" >> $PGDATA/postgresql.conf
- pg_ctl -V
- pg_ctl -D $PGDATA start
before_script:
- cd /home/travis/build/ossc-db/pg_bulkload
- git clone https://github.com/ossc-db/pg_bulkload.git pg_bulkload
- cd pg_bulkload && git describe --alway
- make
- make install
env:
matrix:
- PGVERSION=11
- PGVERSION=10
- PGVERSION=9.6
- PGVERSION=9.5
- PGVERSION=9.4
- PGVERSION=9.3
- PGVERSION=9.2
language: cpp
compiler:
# - clang
- gcc
script: make installcheck
after_script:
- cat /home/travis/build/ossc-db/pg_bulkload/pg_bulkload/bin/regression.diffs