Add environment variable to check whether to run test against postgis 2.4 or not

This commit is contained in:
Daniel García Aubert
2017-10-16 11:08:46 +02:00
parent d959ef5007
commit 67ab12e8e7
3 changed files with 9 additions and 4 deletions
+4 -1
View File
@@ -201,7 +201,10 @@ describe('user render timeout limit', function () {
});
});
describe('vector (PostGIS)', vector(true));
if (process.env.POSTGIS_VERSION === '2.4') {
describe('vector (PostGIS)', vector(true));
}
describe('vector (mapnik)', vector(false));
function vector(usePostGIS) {
const originalUsePostGIS = serverOptions.renderer.mvt.usePostGIS;