40 Commits

Author SHA1 Message Date
Matthias Kuhn
5f0173ed82 Add gdal-bin to travis 2016-02-23 11:08:45 +01:00
Sandro Santilli
bfcf92f728 Use pg initialization script from Travis 2016-02-17 18:14:58 +01:00
Nyall Dawson
2265eb90ec "Fix" QgsDistanceArea test on OSX
Test has revealed that the current algorithm used for ellipsoidal
calculations is unstable when measuring small very areas (eg < 1m2)

For now, modify the test to use larger areas
2016-02-16 12:11:27 +11:00
Nyall Dawson
54b998ff5d Disable PyQgsDistanceArea test on Travis OSX builds for now
Newly added tests have revealed a deep underlying issue with area
measurement on OSX
2016-02-16 06:19:44 +11:00
Matthias Kuhn
c21889f945 Add qgis.testing module for generic qgis test helpers 2016-02-04 13:36:13 +01:00
Nyall Dawson
cf3c55bdfc [travis] Warn on unintentional switch fallthrough
Intentional fallthrough should be annotated with

"FALLTHROUGH;"
2016-01-25 14:41:07 +11:00
Denis Rouzaud
bdf659faa1 Merge pull request #2699 from 3nids/test_join_pg
Add postgres provider to join test
2016-01-20 13:43:45 +01:00
Denis Rouzaud
13ccf70e1a test vector join: add PostgreSQL provider 2016-01-20 12:00:46 +01:00
Nyall Dawson
d902c56f4d Revert "[travis] Use newer clang 3.7 for linux builds"
This reverts commit 54cf64bcdc6dc362fe8ca75c019ec82c7c240af9.

Seems like the recent clang 3.7.1 release is causing build
issues with the sip bindings. Revisit at some later stage, but
for now just get Travis building correctly again.
2016-01-19 13:16:37 +11:00
Nyall Dawson
45eeb95d83 Revert 13f4081 and 2b7c5c1
Ensures that Travis is testing the same documentation coverage as
the actual docs are built using.
2016-01-14 12:22:19 +11:00
Matthias Kuhn
80c9d02f5e Doxygen take 2 2016-01-07 17:10:13 +01:00
Matthias Kuhn
2b7c5c1d1c Only skip *.cpp files for doc generation on travis 2016-01-07 13:34:45 +01:00
Juergen E. Fischer
8949c4420e indentation test: improve interpretation of commit ranges 2015-12-25 04:29:46 +01:00
Michael Kirk
afcf567ebb [Processing] fixup parameters test
- Broke into per class testcase
- Each method tries to test only one aspect of behavior
- Use unittest assertions for better error output
- Removed non-existant serialize functionality from tests
- Test BooleanParameter

Conflicts:
	python/plugins/processing/core/parameters.py
2015-12-24 15:14:02 +01:00
Matthias Kuhn
50092ebbb3 [Travis] Show proper clang version 2015-12-09 11:05:27 +01:00
Matthias Kuhn
c9423c1ac7 [Travis] Don't build with debug info 2015-12-09 10:44:11 +01:00
Matthias Kuhn
be01b7eec5 [FEATURE] Add N:M relation editing possibilities
This adds the possibility to manage data on a normalized relational
database in N:M relations. On the relation editor in a form, the tools
to add, delete, link and unlink work (also) on the linking table if a
relation is visualized as N:M relation.

Configuration is done through the fields tab where on the relation a
second relation can be chosen (if there is a suitable relation in terms
of a second relation on the linking table).

Limitations
===========

QGIS is not a database management system.

It is based on assumptions about the underlying database system. In
particular it expects

 * A `ON DELETE CASCADE` or similar measure on the second relation
 * Does not take care of setting the primary key when adding features.
   Either users need to be instructed to set them manually or - if it's a
   database derived value - the layers need to be in transaction mode
   (currently only activatable through the API)
2015-12-08 15:49:01 +01:00
Matthias Kuhn
ab3542abf8 Write debug output on travis
This should make it easier to debug issues when they fail on travis.
But at the sime time it also decreases the SNR and increases test times.
Will have to check if this makes sense in the long run.
2015-12-04 15:27:43 +01:00
Juergen E. Fischer
0d5d3bc9b8 travis: add indentation check after running tests 2015-12-04 11:50:42 +01:00
Matthias Kuhn
001f4bc581 Disable grass7 tests
Packages are unavailable (at the moment?)
2015-11-26 09:03:32 +01:00
Nyall Dawson
54cf64bcdc [travis] Use newer clang 3.7 for linux builds 2015-11-20 12:59:18 +11:00
Stéphane Brunner
c9f0d83aaf The plugin define the following methods:
* layerFilterExpression
  Return an additional filter, used in
  WMS/GetMap, WMS/GetFeatureInfo, WFS/GetFeature to filter the features
* layerFilterSubsetString
  Return an additional the subset string (typically SQL) filter.
  Faster than the layerFilterExpression but not supported on all the
  type of layer
* layerPermissions
  Change the rights on the layer per user (known by the plugin)
  Concern rights: publish, insert, update, delete.
  Mostly used in WFS/Transaction, and the publish in all requests.
* authorizedLayerAttributes
  Be able to show some attributes only for a subset of user
  Used in: WMS/GetFeatureInfo, WFS/GetFeature
* allowToEdit
  Be able to don't allow to edit a particular feature, in our case base
  on the Geometry
  Used in: WFS/Transaction
* cacheKey
  Cache key to used to create the capabilities cache, "" for no cache,
  shouldn't contains any "-", default to ""
2015-11-18 14:49:43 +01:00
Sebastian Dietrich
1b9452b4d9 removed the activation of postgis extension as this is already done in the testdata.sql script 2015-11-15 21:54:37 +01:00
Sandro Mani
643eb1000d Remove GEOS C++ lib dependency 2015-10-07 23:33:56 +02:00
Matthias Kuhn
4625a162a0 followup 2015-10-07 09:28:40 +02:00
Matthias Kuhn
b680a1be99 Make travis files easier diff'able 2015-10-07 09:27:35 +02:00
Nyall Dawson
a7cd1985ed Add missing python-qt4-sql dependancy to Travis 2015-10-01 07:07:52 +10:00
Nyall Dawson
228d816b3b Merge pull request #2330 from boundlessgeo/master-2_11-auth-system
Authentication configuration system with master password
2015-09-26 05:45:28 +10:00
Larry Shaffer
e65aa99ae7 [FEATURE] Authentication configuration system with master password
- Main C++ core and gui classes and desktop app integration
- Support for authentication method plugins
- Does not contain any integration with service connections
2015-09-21 08:51:18 -06:00
Sandro Mani
be4bb3bc26 Add libgeos++-dev to travis before_install.sh 2015-09-21 10:03:25 +02:00
Matthias Kuhn
e970f4afee [travis] Install grass 7 build deps 2015-09-17 14:54:38 +02:00
Matthias Kuhn
f4d9e6f004 [travis] Enable tests for Grass 7 2015-09-17 14:49:53 +02:00
Matthias Kuhn
42e86932a0 Enable grass on travis 2015-09-17 10:04:46 +02:00
Matthias Kuhn
b8b760e2bb Write important test output to travis console 2015-09-14 17:55:09 +02:00
Nyall Dawson
d16e57ffc1 Cull unneeded dependencies from Travis OSX build 2015-08-19 19:57:17 +10:00
Nyall Dawson
6415a75b51 Cleanup travis scripts 2015-08-12 23:39:02 +10:00
Nyall Dawson
6da3492692 Disable PyQgsServer test on OSX Travis
Test fails with
Fatal Python error: PyThreadState_Get: no current thread
CMake Error at PyQgsServer.cmake:22 (MESSAGE):
  Test failed: Child aborted
2015-08-12 23:38:52 +10:00
Nyall Dawson
baef365720 Add additional dependencies for OSX build 2015-08-12 23:36:29 +10:00
Nyall Dawson
61f60e408f Fix some warnings on OSX build 2015-08-12 23:36:18 +10:00
Nyall Dawson
a477b3a9a2 Enable multi-os builds for travis 2015-08-12 23:36:07 +10:00