Skip to content
Permalink
Browse files
make postgres provider tests optional
  • Loading branch information
jef-n committed May 25, 2015
1 parent 8389918 commit 80506973357f62bb86de379da22bf370289a9064
Showing with 6 additions and 2 deletions.
  1. +1 −1 .travis.yml
  2. +5 −1 tests/src/python/CMakeLists.txt
@@ -40,7 +40,7 @@ install:
- mkdir build
- cd build
- cmake -DWITH_SERVER=ON -DWITH_STAGED_PLUGINS=OFF -DWITH_GRASS=OFF
-DSUPPRESS_QT_WARNINGS=ON -DENABLE_MODELTEST=ON
-DSUPPRESS_QT_WARNINGS=ON -DENABLE_MODELTEST=ON -DENABLE_PGTEST
-DWITH_QWTPOLAR=OFF -DWITH_APIDOC=ON ..

before_script:
@@ -1,3 +1,5 @@
SET (ENABLE_PGTEST FALSE CACHE BOOL "Enable PostgreSQL provider tests")

INCLUDE(UsePythonTest)
ADD_PYTHON_TEST(PyQgsApplication test_qgsapplication.py)
ADD_PYTHON_TEST(PyQgsLocalServer test_qgis_local_server.py)
@@ -43,7 +45,9 @@ ADD_PYTHON_TEST(PyQgsGraduatedSymbolRendererV2 test_qgsgraduatedsymbolrendererv2
ADD_PYTHON_TEST(PyQgsNetworkContentFetcher test_qgsnetworkcontentfetcher.py)
ADD_PYTHON_TEST(PyQgsEditWidgets test_qgseditwidgets.py)
ADD_PYTHON_TEST(PyQgsRangeWidgets test_qgsrangewidgets.py)
ADD_PYTHON_TEST(PyQgsPostgresProvider test_provider_postgres.py)
IF (ENABLE_PGTEST)
ADD_PYTHON_TEST(PyQgsPostgresProvider test_provider_postgres.py)
ENDIF (ENABLE_PGTEST)
ADD_PYTHON_TEST(PyQgsSpatialiteProvider test_provider_spatialite.py)
ADD_PYTHON_TEST(PyQgsShapefileProvider test_provider_shapefile.py)
ADD_PYTHON_TEST(PyQgsSpatialiteProviderOther test_qgsspatialiteprovider.py)

0 comments on commit 8050697

Please sign in to comment.