136 Commits

Author SHA1 Message Date
Nyall Dawson
88e4410af1 Require Qt >= 5.5 2016-09-21 09:12:54 +10:00
Nyall Dawson
9d1bf5bf12 Update qt5 test blacklist 2016-09-21 09:12:54 +10:00
Matthias Kuhn
359d5e16b3 Disable flaky WFST server test 2016-09-20 13:12:37 +02:00
Matthias Kuhn
448961b35d Disable flaky PyQgsWFSProviderGUI test 2016-09-16 08:53:59 +02:00
Hugo Mercier
b23e58a6d9 Restore virtual layer tests in PyQt5 2016-09-05 13:43:00 +02:00
Hugo Mercier
7e6d641c68 Fix PyQgsLayerDependencies with pyqt5 2016-09-05 13:43:00 +02:00
Hugo Mercier
5c3a43e286 Fix spatialite access with python3 2016-09-05 13:43:00 +02:00
Nyall Dawson
e54f9bee7a Fix PyQgsMapUnitScale test under qt5 2016-09-05 10:56:07 +10:00
Hugo Mercier
0749ba43ba Rework layer dependencies
A new class QgsMapLayerDependency allows to represent different kinds
of dependencies between layers.
2016-08-31 14:40:13 +02:00
Nyall Dawson
6214dc11e2 Disable PyQgsOfflineEditingWFS test on Travis
The test regularly fails on unrelated commits.

Possible the test should be reworked to reuse the server
launching routines from the labeling server test, which
seem more robust and work consistently across platforms
2016-08-20 06:36:13 +10:00
Matthias Kuhn
0269d05369 [travis] Explicitly install missing homebrew deps 2016-08-17 12:00:12 +02:00
Denis Rouzaud
c800ab46e9 enable relation editor widget test on Qt5 2016-08-15 13:56:18 +02:00
Matthias Kuhn
7ee55a78f1 [pyqt5] Aliases for indistinguishable method overloads (#3099)
See
https://www.riverbankcomputing.com/pipermail/pyqt/2016-May/037500.html
2016-08-10 20:58:39 +02:00
Matthias Kuhn
58ea21124e Streamline expression context generation (#3350)
* Save more data to QML

 * Virtual fields
 * Map tips
 * Display expression
 * Read only flag

* Streamline expression context generation

Whenever an object is able to generate an expression context it
implements the method createExpressionContext() declared in
QgsExpressionContextGenerator.

This makes a cleaner API and allows using QgsFieldExpressionWidget and
QgsDataDefinedButton from python because standard OO programming
approaches are used instead of callbacks and void pointers.

* Colorize output of doc and sip tests

* Fix build

* Fix sip complaints

* Fix rebase problems

* Workaround failing bindings test
2016-08-10 19:44:30 +02:00
Matthias Kuhn
bb79d13e82 Remove deprecated Qgis::WKBType and API cleanup (#3325)
* Remove deprecated Qgis::WKBType and API cleanup

Renames QgsWKBTypes to QgsWkbTypes

Replaces usage of the enums:

* Qgis::WKBType with QgsWkbTypes::Type
* Qgis::GeometryType with QgsWkbTypes::GeometryType

Their values should be forward compatible (a fact that was already
explited up to now by casting between the types)

Renames some SSLxxx to SslXxx and URIxxx to UriXxx

* Fix build warnings and simplify type handling

* Add a fixer to rewrite imports

* The forgotten rebase conflictThe forgotten rebase conflicts

* QgsDataSourcURI > QgsDataSourceUri

* QgsWKBTypes > QgsWkbTypes

* Qgis.WKBGeom > QgsWkbTypes.Geom

* Further python fixes

* Guess what... Qgis::wkbDimensions != QgsWkbTypes::wkbDimensions

* Fix tests

* Python 3 updates

* [travis] pull request caching cannot be disabled

so at least use it in r/w mode

* Fix python3 print in plugins
2016-08-04 09:10:08 +02:00
Matthias Kuhn
774a823983 [travis] Blacklist failing osx tests 2016-07-11 11:11:23 +02:00
Matthias Kuhn
858808107c [travis] Add GRASS_PREFIX7 to osx build 2016-07-11 11:11:22 +02:00
Matthias Kuhn
d06859a88d [travis] Modernize Mac OSX dependencies 2016-07-11 11:11:22 +02:00
Matthias Kuhn
ab13c63470 [travis] Use clang for Qt5 builds (#3275)
To get warnings from different compilers
2016-07-05 12:02:01 +02:00
Alexander Bruy
a12152c724 Merge pull request #3238 from medspx/processing_g7_raster_tests
[processing] more grass7 unit tests and their fixes
2016-06-29 19:49:58 +03:00
Matthias Kuhn
4b6d38c4c4 Add option to suppress SIP warnings (#3230)
to fix travis builds for OSX. Yay
2016-06-23 16:16:51 +02:00
Médéric RIBREUX
bf02d34f55 Blacklist qt5 tests for Travis 2016-06-11 16:25:03 +02:00
Matthias Kuhn
e0d6c3f307 [travis] Readonly ccache for pull requests 2016-06-07 11:17:48 +02:00
Matthias Kuhn
f04298f128 Use ccache for gcc on travis 2016-06-04 11:00:07 +02:00
Matthias Kuhn
c8011d914a Temporarily disable missing llvm apt repo 2016-06-03 14:49:12 +02:00
Juergen E. Fischer
6e66eef1ef add missing copyright headers 2016-06-03 10:33:09 +02:00
Médéric RIBREUX
59faf95c1d Blacklist travis-ci qt5 tests and remove i.fft test 2016-05-29 09:00:16 +02:00
Nyall Dawson
eb3a34cc92 Fix QgsComposerAttributeTableV2 setting displayed fields under qt5
Also don't run QgsComposerAttributeTable test when disable
deprecated flag is set.
2016-05-23 14:52:46 +10:00
Matthias Kuhn
b18e33c880 [qt5 tests] Fix blacklist 2016-05-22 23:29:20 +02:00
Matthias Kuhn
87ac6eaf7b [qt5 tests] Unblacklist more tests 2016-05-22 22:04:52 +02:00
Matthias Kuhn
0e96ef3797 [travis] Fix ccache for Qt4 builds 2016-05-22 21:52:55 +02:00
Matthias Kuhn
bbe9664dba [travis] Run Qt5 tests with osgeo4travis in $PATH
This allows running the gdal processing tests and other subprocesses which have
been manually built like server applications.
2016-05-22 21:52:55 +02:00
Matthias Kuhn
7e113840cb [qt5 tests] Unblacklist tests 2016-05-22 21:52:55 +02:00
Even Rouault
aa66bc6a20 Merge pull request #3076 from rouault/delimitedtext_qt5_fix
Delimited text provider: fix parsing of subset URL parameter with QT 5 and fix tests
2016-05-17 17:00:36 +02:00
Even Rouault
902953ca9a Delimited text provider: fix parsing of subset URL parameter with QT 5 and fix tests
In Qt 4, QUrl::queryItemValue() decodes a value that contains %25 as %, whereas
it doesn't with Qt5.
2016-05-16 23:41:00 +02:00
Nyall Dawson
5c7f4c7664 Merge pull request #3072 from rouault/qt5_fix_testqgsfield
Make qgis_fieldtest all Qt 5.X compatible
2016-05-16 07:04:43 +10:00
Even Rouault
c4819adea4 Merge remote-tracking branch 'rouault/fix_qt5_wfs_ogcutils_tests' 2016-05-15 21:30:56 +02:00
Even Rouault
202420c70a Make qgis_fieldtest all Qt 5.X compatible
In https://codereview.qt-project.org/#/c/99815/ implemented in QT 5.5,
doubles are converted to strings using '%.17g', so short decimal values
might be expanded to long strings depending on their values.
https://wiki.qt.io/New_Features_in_Qt_5.7 has a logic to avoid this, but
if we select carefully the double to have both an exact binary and decimal
representation, that can work will all versions.

$ python -c "print('%.17g' % 9.7)"
9.6999999999999993

$ python -c "print('%.17g' % 1.25)"
1.25
2016-05-15 19:44:13 +02:00
Even Rouault
9a49c6aace Make ogcutils and WFS tests Qt 5 compatible 2016-05-15 19:17:58 +02:00
Nyall Dawson
c732c68749 [travis] Run tests even with build failures on osx 2016-05-15 20:38:38 +10:00
Nyall Dawson
57d114e2e2 Update test masks for Qt5, enable labeling tests 2016-05-15 20:38:38 +10:00
Matthias Kuhn
94e062728f Unblacklist fixed Qt5 tests 2016-05-14 00:02:28 +02:00
Nyall Dawson
729c70379e Blacklist PyQgsJSONUtils test from qt5 (uses null) 2016-05-09 21:19:28 +10:00
Matthias Kuhn
3de068894d [travis] Fix warnings about invalid ccache options
https://travis-ci.org/qgis/QGIS/jobs/127438282#L731
2016-05-04 09:50:25 +02:00
Matthias Kuhn
aa9010e8ed Limit ccache size to 150M 2016-05-02 18:25:57 +02:00
Matthias Kuhn
d9ee8758b3 Blacklist broken tests 2016-04-23 21:29:55 +02:00
Matthias Kuhn
8e9641b8b6 Update blacklist 2016-04-23 21:09:21 +02:00
Matthias Kuhn
c0a2be775e Enable QtWebKit with Qt5 tests 2016-04-23 21:09:20 +02:00
Matthias Kuhn
99ab6e3a9d Disable internal yaml 2016-04-23 21:09:20 +02:00
Nyall Dawson
eacca44c6f Test mask updates (qt5 and xenial) 2016-04-22 05:46:58 +10:00