[postgis-tickets] r16759 - [travis] Use Postgres 11

Darafei komzpa at gmail.com
Tue Sep 11 06:17:45 PDT 2018


Author: komzpa
Date: 2018-09-11 06:17:45 -0700 (Tue, 11 Sep 2018)
New Revision: 16759

Modified:
   trunk/.travis.yml
Log:
[travis] Use Postgres 11

This lets us check SP-GiST pull requests.

JIT is disabled due to LLVM/Postgres pre-release bug.

Closes https://github.com/postgis/postgis/pull/262



Modified: trunk/.travis.yml
===================================================================
--- trunk/.travis.yml	2018-09-11 11:49:22 UTC (rev 16758)
+++ trunk/.travis.yml	2018-09-11 13:17:45 UTC (rev 16759)
@@ -1,32 +1,49 @@
 env:
   matrix:
-    - CFLAGS="-g -Og" MATRIX_EVAL="touch check-no-trailing-blanks"
-    - CFLAGS="-g -O2 -fstack-protector -Wformat -Werror=format-security" LDFLAGS="-Wl,-Bsymbolic-functions -Wl,-z,relro"
-    - CFLAGS="-g -O3 -mtune=generic -fno-omit-frame-pointer -Werror -Wall -Wextra -Wno-unused-parameter"
-    - CFLAGS="-g -O0 --coverage -fprofile-arcs -ftest-coverage" LDFLAGS="--coverage -fprofile-arcs -ftest-coverage" CONFIGURE_FLAGS="--enable-debug"
+    - CFLAGS="-g -O1" MATRIX_EVAL="touch check-no-trailing-blanks" PGPORT="5433"
+    - CFLAGS="-g -O2 -fstack-protector -Wformat -Werror=format-security" LDFLAGS="-Wl,-Bsymbolic-functions -Wl,-z,relro" PGPORT="5433"
+    - CFLAGS="-g -O3 -mtune=generic -fno-omit-frame-pointer -Werror -Wall -Wextra -Wno-unused-parameter" PGPORT="5433"
+    - CFLAGS="-g -O0 --coverage -fprofile-arcs -ftest-coverage" LDFLAGS="--coverage -fprofile-arcs -ftest-coverage" CONFIGURE_FLAGS="--enable-debug" PGPORT="5433"
 
 addons:
-  postgresql: "9.6"
+  postgresql: "11"
   apt:
+    sources:
+      - sourceline: 'deb https://apt.postgresql.org/pub/repos/apt trusty-pgdg main 11'
+        key_url: 'https://www.postgresql.org/media/keys/ACCC4CF8.asc'
     packages:
       - eatmydata
+      - postgresql-11
+      - postgresql-server-dev-11
+      - postgresql-11-dbg
+      - libgcc1-dbg
+      - libc++-dev
+      - libc++abi-dev
+      - lib64stdc++6-4.8-dbg
 
 before_install:
   - eval "${MATRIX_EVAL}"
+  - echo "postgres               soft    core            unlimited" | sudo tee -a /etc/security/limits.conf
+  - echo "postgres               hard    core            unlimited" | sudo tee -a /etc/security/limits.conf
+  - /usr/lib/postgresql/11/bin/pg_config
+  - echo "pg_ctl_options = '-c'" | sudo tee /etc/postgresql/11/main/pg_ctl.conf
   - sudo sh -c "echo /usr/lib/libeatmydata/libeatmydata.so >> /etc/ld.so.preload"
   - curl -sSfL https://github.com/mapbox/logbt/archive/v2.0.3.tar.gz | sudo tar --gunzip --extract --strip-components=1 --exclude="*md" --exclude="test*" --directory=/usr/local
   - curl -sSfL https://raw.githubusercontent.com/mapbox/logbt/30c554dd37b6c96c23fc424f75910fc6d6696f00/bin/logbt | sudo tee /usr/local/bin/logbt > /dev/null
   - sudo logbt --setup
-  - sudo service postgresql stop 9.6
+  - sudo service postgresql status 11
+  - echo "jit = off" | sudo tee -a /etc/postgresql/11/main/postgresql.conf
+  - sudo service postgresql stop 11
   - sudo chown -hRL --from=postgres travis:travis /etc /var /tmp
   - sudo usermod -u 1000 postgres
   - sudo adduser travis ssl-cert
-  - sudo service postgresql start 9.6
+  - sudo service postgresql start 11
+  - sudo service postgresql status 11
   - sudo add-apt-repository --yes ppa:ubuntugis/ppa
   - sudo add-apt-repository --yes ppa:ubuntugis/ubuntugis-unstable
   - sudo apt-get update -qq
   - mkdir -p /home/travis/deb && touch /home/travis/deb/__ && sudo cp -n /home/travis/deb/* /var/cache/apt/archives || true
-  - sudo apt-get install -y --allow-unauthenticated --no-install-recommends --no-install-suggests libsfcgal1 libsfcgal-dev postgresql-server-dev-9.6 libxml2-utils libcunit1-dev xsltproc docbook-xsl docbook-mathml dblatex libgeos-dev libjson0-dev libgdal-dev gdb libc6-dbg
+  - sudo apt-get install -y --allow-unauthenticated --no-install-recommends --no-install-suggests libsfcgal1 libsfcgal-dev libxml2-utils libcunit1-dev xsltproc docbook-xsl docbook-mathml dblatex libgeos-dev libjson0-dev libprotobuf-c0-dev libgdal-dev gdb libc6-dbg
   - sudo sh -c "echo deb http://archive.ubuntu.com/ubuntu/ artful main restricted universe multiverse >> /etc/apt/sources.list"
   - sudo apt-get update -qq
   - sudo apt-get install -y --allow-unauthenticated --no-install-recommends --no-install-suggests binutils libproj-dev libprotobuf-c-dev protobuf-c-compiler
@@ -36,7 +53,7 @@
   - ./autogen.sh
 
 after_failure:
-  - sudo head -n1000 /var/log/postgresql/postgresql-9.6-main.log
+  - sudo head -n1000 /var/log/postgresql/postgresql-11-main.log
 
 after_success:
   - bash .github/codecov.bash



More information about the postgis-tickets mailing list