[postgis-tickets] r16152 - [travis] Run Travis builds with -Werror

Darafei komzpa at gmail.com
Fri Dec 15 05:25:38 PST 2017


Author: komzpa
Date: 2017-12-15 05:25:38 -0800 (Fri, 15 Dec 2017)
New Revision: 16152

Modified:
   trunk/.travis.yml
Log:
[travis] Run Travis builds with -Werror

Closes #3943
Closes https://github.com/postgis/postgis/pull/163



Modified: trunk/.travis.yml
===================================================================
--- trunk/.travis.yml	2017-12-13 20:51:36 UTC (rev 16151)
+++ trunk/.travis.yml	2017-12-15 13:25:38 UTC (rev 16152)
@@ -1,25 +1,35 @@
 env:
   global:
     - RUNTESTFLAGS=-v
+    - CFLAGS="-O3 -fno-omit-frame-pointer -Werror"
 
 addons:
   postgresql: "9.6"
+  apt:
+    packages:
+      - postgresql-server-dev-9.6
+      - libxml2-utils
+      - libcunit1-dev
+      - xsltproc
+      - docbook-xsl
+      - docbook-mathml
+      - dblatex
+      - libgeos-dev
+      - libjson0-dev
+      - libprotobuf-c0-dev
+      - libgdal-dev
+      - eatmydata
 
 before_install:
-  - sudo add-apt-repository --yes ppa:ubuntugis/ppa
-  - sudo add-apt-repository --yes ppa:ubuntugis/ubuntugis-unstable
-  - sudo apt-get update -qq
-  - sudo apt-get install -y --no-install-recommends
-      postgresql-9.6 postgresql-server-dev-9.6 libxml2-utils
-      libcunit1-dev xsltproc docbook-xsl docbook-mathml dblatex
-      libgdal-dev libgeos-dev libjson0-dev
-      libsfcgal1 libsfcgal-dev libprotobuf-c0-dev libgdal-dev
-  - dpkg -l | grep postgresql
+  - sudo eatmydata add-apt-repository --yes ppa:ubuntugis/ppa
+  - sudo eatmydata add-apt-repository --yes ppa:ubuntugis/ubuntugis-unstable
+  - sudo eatmydata apt-get update -qq
+  - sudo eatmydata apt-get install -y --no-install-recommends --no-install-suggests libsfcgal1 libsfcgal-dev
   - wget http://download.osgeo.org/proj/proj-4.9.2.tar.gz
   - tar zxvf proj-4.9.2.tar.gz
   - cd proj-4.9.2
-  - ./configure --prefix=/usr
-  - make
+  - CFLAGS="-O3" ./configure --prefix=/usr
+  - CFLAGS="-O3" eatmydata make -j
   - sudo make install
   - cd ..
   - rm -rf proj-4.9.2
@@ -37,13 +47,13 @@
 
 script:
   - ./configure
-  - make
+  - eatmydata make -j
   - chmod 755 /home/travis
-  - make check
-  - make check RUNTESTFLAGS='--dumprestore'
+  - eatmydata make check
+  - eatmydata make check RUNTESTFLAGS='--dumprestore'
   - sudo make install
-  - make installcheck
-  - make installcheck RUNTESTFLAGS='--dumprestore'
+  - eatmydata make installcheck
+  - eatmydata make installcheck RUNTESTFLAGS='--dumprestore'
 
 notifications:
   email: false



More information about the postgis-tickets mailing list