[postgis-tickets] r16200 - [travis] enable SQL tests in coverage

Darafei komzpa at gmail.com
Fri Dec 29 02:06:52 PST 2017


Author: komzpa
Date: 2017-12-29 14:06:52 -0800 (Fri, 29 Dec 2017)
New Revision: 16200

Modified:
   trunk/.travis.yml
Log:
[travis] enable SQL tests in coverage

Postgres runs postgis built with --coverage as another user, so traces aren't properly written. 
Change process to run as travis user.

Closes #3966



Modified: trunk/.travis.yml
===================================================================
--- trunk/.travis.yml	2017-12-29 17:20:23 UTC (rev 16199)
+++ trunk/.travis.yml	2017-12-29 22:06:52 UTC (rev 16200)
@@ -14,6 +14,12 @@
 
 before_install:
   - sudo sh -c "echo /usr/lib/libeatmydata/libeatmydata.so >> /etc/ld.so.preload"
+  - sudo service postgresql stop 9.6
+  - sudo find /etc -user postgres | xargs sudo chown travis
+  - sudo find /var -user postgres | xargs sudo chown travis
+  - sudo usermod -u 1000 postgres
+  - sudo adduser travis ssl-cert
+  - sudo service postgresql start 9.6
   - sudo add-apt-repository --yes ppa:ubuntugis/ppa
   - sudo add-apt-repository --yes ppa:ubuntugis/ubuntugis-unstable
   - sudo apt-get update -qq



More information about the postgis-tickets mailing list