Do not run test if postgis version is lower than or equal to 2.4

This commit is contained in:
Daniel García Aubert 2017-10-16 12:15:28 +02:00
parent 67ab12e8e7
commit f8ff41be01
2 changed files with 4 additions and 4 deletions

View File

@ -1,4 +1,4 @@
export NPROCS=1 && export JOBS=1 && export CXX=g++-4.9 && export PGUSER=postgres
export NPROCS=1 && export JOBS=1 && export CXX=g++-4.9 && export PGUSER=postgres export POSTGIS_VERSION=2.4
npm install -g yarn@0.27.5
yarn
@ -8,4 +8,4 @@ yarn
createdb template_postgis && createuser publicuser
psql -c "CREATE EXTENSION postgis" template_postgis
POSTGIS_VERSION=2.4 npm test
npm test

View File

@ -152,7 +152,7 @@ describe('buffer size per format', function () {
});
});
};
if (test.format === 'mvt'){
if (process.env.POSTGIS_VERSION === '2.4' && test.format === 'mvt'){
testFn(true);
}
testFn(false);
@ -465,7 +465,7 @@ describe('buffer size per format for named maps w/o placeholders', function () {
});
});
};
if (test.format === 'mvt'){
if (process.env.POSTGIS_VERSION === '2.4' && test.format === 'mvt'){
testFn(true);
}
testFn(false);