From f8ff41be01cfd9bbf76efe91ff8a376937645b7a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Garc=C3=ADa=20Aubert?= Date: Mon, 16 Oct 2017 12:15:28 +0200 Subject: [PATCH] Do not run test if postgis version is lower than or equal to 2.4 --- docker-test.sh | 4 ++-- test/acceptance/buffer-size-format.js | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/docker-test.sh b/docker-test.sh index 8cc8c093..00cc63b3 100644 --- a/docker-test.sh +++ b/docker-test.sh @@ -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 \ No newline at end of file +npm test \ No newline at end of file diff --git a/test/acceptance/buffer-size-format.js b/test/acceptance/buffer-size-format.js index 2366d035..ba8955e7 100644 --- a/test/acceptance/buffer-size-format.js +++ b/test/acceptance/buffer-size-format.js @@ -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);