Merge pull request #976 from Algunenano/auto_postgis

Test: Make POSTGIS_VERSION detection automatic
This commit is contained in:
Raúl Marín
2018-06-12 10:09:40 +02:00
committed by GitHub
9 changed files with 25 additions and 9 deletions
+1 -1
View File
@@ -9,7 +9,7 @@ const suites = [{
usePostGIS: false
}];
if (process.env.POSTGIS_VERSION === '2.4') {
if (process.env.POSTGIS_VERSION >= '20400') {
suites.push({
desc: 'mvt (postgis)',
usePostGIS: true
+2 -2
View File
@@ -152,7 +152,7 @@ describe('buffer size per format', function () {
});
});
};
if (process.env.POSTGIS_VERSION === '2.4' && test.format === 'mvt'){
if (process.env.POSTGIS_VERSION >= '20400' && test.format === 'mvt'){
testFn(true);
}
testFn(false);
@@ -465,7 +465,7 @@ describe('buffer size per format for named maps w/o placeholders', function () {
});
});
};
if (process.env.POSTGIS_VERSION === '2.4' && test.format === 'mvt'){
if (process.env.POSTGIS_VERSION >= '20400' && test.format === 'mvt'){
testFn(true);
}
testFn(false);
+1 -1
View File
@@ -9,7 +9,7 @@ const suites = [{
usePostGIS: false
}];
if (process.env.POSTGIS_VERSION === '2.4') {
if (process.env.POSTGIS_VERSION >= '20400') {
suites.push({
desc: 'postgis',
usePostGIS: true
+1 -1
View File
@@ -20,7 +20,7 @@ function createMapConfig(sql = TestClient.SQL.ONE_POINT) {
}
describe('mvt (mapnik)', mvt(false));
if (process.env.POSTGIS_VERSION === '2.4') {
if (process.env.POSTGIS_VERSION >= '20400') {
describe('mvt (postgis)', mvt(true));
}
@@ -440,7 +440,7 @@ describe('user database timeout limit', function () {
});
});
if (process.env.POSTGIS_VERSION === '2.4') {
if (process.env.POSTGIS_VERSION >= '20400') {
describe('fetching vector tiles via PostGIS renderer', function() {
const usePostGIS = true;
const originalUsePostGIS = serverOptions.renderer.mvt.usePostGIS;
+1 -1
View File
@@ -72,7 +72,7 @@ const suites = [{
usePostGIS: false
}];
if (process.env.POSTGIS_VERSION === '2.4') {
if (process.env.POSTGIS_VERSION >= '20400') {
suites.push({
desc: 'mvt (postgis)',
usePostGIS: true