mirror of
https://github.com/qgis/QGIS.git
synced 2025-10-06 00:07:29 -04:00
Be more verbose with debug info on travis
This commit is contained in:
parent
2458eaf8cc
commit
3d5de9ee25
@ -50,7 +50,8 @@ install:
|
||||
- cd build
|
||||
- cmake -DWITH_SERVER=ON -DWITH_STAGED_PLUGINS=OFF -DWITH_GRASS=OFF
|
||||
-DSUPPRESS_QT_WARNINGS=ON -DENABLE_MODELTEST=ON -DENABLE_PGTEST=ON
|
||||
-DWITH_QWTPOLAR=OFF -DWITH_APIDOC=ON -DWITH_PYSPATIALITE=ON ..
|
||||
-DWITH_QWTPOLAR=OFF -DWITH_APIDOC=ON -DWITH_PYSPATIALITE=ON
|
||||
-DCMAKE_BUILD_TYPE=RelWithDebInfo ..
|
||||
|
||||
before_script:
|
||||
- printf "[qgis_test]\nhost=localhost\ndbname=qgis_test\nuser=postgres" > ~/.pg_service.conf
|
||||
|
@ -13,7 +13,7 @@ IF ($ENV{TRAVIS_PULL_REQUEST} STREQUAL "false")
|
||||
ELSE()
|
||||
SET (CTEST_BUILD_NAME "PR: $ENV{TRAVIS_PULL_REQUEST} / $ENV{TRAVIS_BRANCH} ($ENV{TRAVIS_COMMIT})")
|
||||
ENDIF()
|
||||
SET (CTEST_BUILD_CONFIGURATION "Release")
|
||||
SET (CTEST_BUILD_CONFIGURATION "RelWithDebInfo")
|
||||
|
||||
|
||||
SET (INITIAL_CACHE "
|
||||
|
@ -47,7 +47,7 @@ class TestPyQgsAppStartup(unittest.TestCase):
|
||||
# TODO: refactor parameters to **kwargs to handle all startup combinations
|
||||
def doTestStartup(self, option='', testDir='', testFile='',
|
||||
loadPlugins=False, customization=False,
|
||||
timeOut=30, env=None):
|
||||
timeOut=15, env=None):
|
||||
"""Run QGIS with the given option. Wait for testFile to be created.
|
||||
If time runs out, fail.
|
||||
"""
|
||||
@ -106,7 +106,8 @@ class TestPyQgsAppStartup(unittest.TestCase):
|
||||
assert self.doTestStartup(option="--configpath",
|
||||
testDir=os.path.join(self.TMP_DIR, p),
|
||||
testFile="qgis.db",
|
||||
timeOut=30), "config path %s" % p
|
||||
timeOut=15), "config path %s" % p
|
||||
|
||||
@unittest.expectedFailure
|
||||
def testPluginPath(self):
|
||||
for t in ['test_plugins', 'test plugins', u'test_pluginsé€']:
|
||||
@ -129,7 +130,7 @@ class TestPyQgsAppStartup(unittest.TestCase):
|
||||
option="--optionspath",
|
||||
testDir=testDir,
|
||||
testFile="plugin_started.txt",
|
||||
timeOut=30,
|
||||
timeOut=15,
|
||||
loadPlugins=True,
|
||||
env={'QGIS_PLUGINPATH':
|
||||
str(QtCore.QString(testDir).toLocal8Bit())})
|
||||
@ -151,7 +152,7 @@ class TestPyQgsAppStartup(unittest.TestCase):
|
||||
msg = 'Failed to create test file from executing PYQGIS_STARTUP file'
|
||||
assert self.doTestStartup(
|
||||
testFile=testfilepath,
|
||||
timeOut=30,
|
||||
timeOut=15,
|
||||
env={'PYQGIS_STARTUP': testmod}), msg
|
||||
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user