|
1 | 1 | language: c |
2 | | -dist: trusty |
3 | 2 |
|
4 | | -before_install: |
5 | | - - sudo apt-get update |
6 | | - - sudo apt-get install -q postgresql-server-dev-9.6 libcunit1-dev valgrind |
7 | | - - sudo add-apt-repository -y ppa:ubuntu-toolchain-r/test |
8 | | - - sudo apt-get update -qq |
9 | | - |
10 | | -install: |
11 | | - - sudo apt-get install -qq g++-4.8 |
12 | | - - export CXX="g++-4.8" |
13 | | - - sh .install-lazperf.sh |
14 | | - - npm install -g eclint@1.1.5 |
15 | | - |
16 | | -addons: |
17 | | - postgresql: "9.6" # for "installcheck" |
18 | | - apt: |
19 | | - packages: |
20 | | - - postgresql-9.6-postgis-2.4 |
21 | | - |
22 | | -# Note: Valgrind currently reports many problems when libght is enabled. So for |
23 | | -# now, and until the problems are fixed, we just run the unit tests with libght |
24 | | -# enabled. |
| 3 | +jobs: |
| 4 | + include: |
| 5 | + - env: POSTGRESQL_VERSION="9.6" POSTGIS_VERSION="2.5" |
| 6 | + dist: xenial |
| 7 | + - env: POSTGRESQL_VERSION="10" POSTGIS_VERSION="2.5" |
| 8 | + dist: xenial |
| 9 | + - env: POSTGRESQL_VERSION="11" POSTGIS_VERSION="2.5" |
| 10 | + dist: xenial |
| 11 | + - env: POSTGRESQL_VERSION="12" POSTGIS_VERSION="2.5" |
| 12 | + dist: bionic |
| 13 | + - env: POSTGRESQL_VERSION="12" POSTGIS_VERSION="3" |
| 14 | + dist: bionic |
25 | 15 |
|
26 | 16 | script: |
| 17 | + - sudo service postgresql stop |
| 18 | + - sudo apt-get remove postgresql* -y |
| 19 | + - sudo apt-get install -q postgresql-server-dev-$POSTGRESQL_VERSION postgresql-client-$POSTGRESQL_VERSION postgresql-$POSTGRESQL_VERSION-postgis-$POSTGIS_VERSION libcunit1-dev valgrind g++ |
| 20 | + - sudo pg_dropcluster --stop $POSTGRESQL_VERSION main |
| 21 | + - sudo rm -rf /etc/postgresql/$POSTGRESQL_VERSION /var/lib/postgresql/$POSTGRESQL_VERSION |
| 22 | + - sudo pg_createcluster -u postgres $POSTGRESQL_VERSION main -- --auth-local trust --auth-host password |
| 23 | + - sudo /etc/init.d/postgresql start $POSTGRESQL_VERSION || sudo journalctl -xe |
| 24 | + - psql -c 'CREATE ROLE travis SUPERUSER LOGIN CREATEDB;' -U postgres |
| 25 | + - nvm install 8 |
| 26 | + - npm install -g eclint@1.1.5 |
27 | 27 | - eclint check * */* */cunit/* |
| 28 | + - sh .install-lazperf.sh |
28 | 29 | - ./tools/build-install.sh # test compilation without lazperf |
29 | 30 | - ./tools/build-install.sh --with-lazperf=/usr/local && make check && ./tools/valgrind.sh |
30 | 31 | - make installcheck || { cat pgsql/regression.diffs && false; } |
31 | 32 | - (cd tools/benchmark_compression && sh compression_benchmark.sh) |
| 33 | + |
| 34 | +after_failure: |
| 35 | + - cat pgsql/regression.out |
| 36 | + - cat pgsql/regression.diffs |
0 commit comments