[postgis-tickets] r16769 - [travis] Ubuntu Bionic, GCC 7

Darafei komzpa at gmail.com
Wed Sep 12 03:01:52 PDT 2018


Author: komzpa
Date: 2018-09-12 15:01:51 -0700 (Wed, 12 Sep 2018)
New Revision: 16769

Modified:
   trunk/.travis.yml
Log:
[travis] Ubuntu Bionic, GCC 7

Re-enabled JIT.

-Werror now shows more warnings.

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



Modified: trunk/.travis.yml
===================================================================
--- trunk/.travis.yml	2018-09-12 17:30:57 UTC (rev 16768)
+++ trunk/.travis.yml	2018-09-12 22:01:51 UTC (rev 16769)
@@ -1,14 +1,14 @@
 env:
   matrix:
-    - 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"
+    - CFLAGS="-g -O1" 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"
 
 addons:
   apt:
     sources:
-      - sourceline: 'deb http://apt.postgresql.org/pub/repos/apt trusty-pgdg 11'
+      - sourceline: 'deb http://apt.postgresql.org/pub/repos/apt bionic-pgdg 11'
         key_url: 'https://www.postgresql.org/media/keys/ACCC4CF8.asc'
     packages:
       - eatmydata
@@ -15,21 +15,20 @@
 
 before_install:
   - eval "${MATRIX_EVAL}"
-  - sudo sh -c "echo /usr/lib/libeatmydata/libeatmydata.so >> /etc/ld.so.preload"
-  - sudo /etc/init.d/postgresql stop
+  - sudo sh -c "echo /usr/lib/x86_64-linux-gnu/libeatmydata.so >> /etc/ld.so.preload"
+  - sudo service postgresql stop
     
   - 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 apt-get remove postgresql-9.4 postgresql-9.5 postgresql-9.6 postgresql-10 postgresql-client-9.4 postgresql-client-9.5 postgresql-client-9.6 postgresql-client-10
   - sudo add-apt-repository --yes ppa:ubuntugis/ppa
   - sudo add-apt-repository --yes ppa:ubuntugis/ubuntugis-unstable
+  - sudo sh -c "echo deb http://archive.ubuntu.com/ubuntu/ bionic main restricted universe multiverse >> /etc/apt/sources.list"
   - 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 postgresql-11 postgresql-server-dev-11 lib64stdc++6-4.8-dbg libc++abi-dev libc++-dev postgresql-11-dbg libgcc1-dbg 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
+  - sudo apt-get install -y --allow-unauthenticated --no-install-recommends --no-install-suggests postgresql-11 postgresql-client-11 postgresql-server-dev-11 postgresql-11-dbgsym libproj-dev libprotobuf-c-dev protobuf-c-compiler libc++abi-dev libc++-dev libgcc1-dbg libsfcgal1 libsfcgal-dev libxml2-utils libcunit1-dev xsltproc docbook-xsl docbook-mathml dblatex libgeos-dev libjson-c-dev libprotobuf-c0-dev libgdal-dev gdb libc6-dbg gcc
     
   - cp -n /var/cache/apt/archives/* /home/travis/deb || true
   
@@ -36,13 +35,12 @@
   - echo "postgres               soft    core            unlimited" | sudo tee -a /etc/security/limits.conf
   - echo "postgres               hard    core            unlimited" | sudo tee -a /etc/security/limits.conf
   - echo "pg_ctl_options = '-c'" | sudo tee /etc/postgresql/11/main/pg_ctl.conf
-  - echo "jit = off" | sudo tee -a /etc/postgresql/11/main/postgresql.conf
-  - sudo service postgresql stop 11
+  - sudo service postgresql stop
   - sudo chown -hRL --from=postgres travis:travis /etc /var /tmp
   - sudo usermod -u 1000 postgres
   - sudo adduser travis ssl-cert
-  - sudo service postgresql start 11
-  - sudo service postgresql status 11
+  - sudo service postgresql start
+  - sudo service postgresql status 
   - sudo -u postgres createuser --superuser travis
   
   - sudo ldconfig
@@ -57,7 +55,7 @@
 
 compiler: gcc
 
-dist: trusty
+dist: xenial
 
 cache:
   ccache: true



More information about the postgis-tickets mailing list