Merge pull request #976 from Algunenano/auto_postgis
Test: Make POSTGIS_VERSION detection automatic
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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);
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user