Do not run test if postgis version is lower than or equal to 2.4
This commit is contained in:
parent
67ab12e8e7
commit
f8ff41be01
@ -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
|
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user