Commit Graph

87 Commits

Author SHA1 Message Date
Nick Hall
9ea958661b Fix python3-icu in Travis CI build 2020-08-22 20:49:01 +01:00
Nick Hall
d30376ca20 Change Travis CI python version to 3.4 2020-08-22 20:38:58 +01:00
Nick Hall
80b3572e30 Update Travis CI build configuration
Change distro from trusty to xenial.
Add missing os key.
Remove deprecated sudo key.
2020-08-22 20:28:26 +01:00
Nick Hall
c09b4e96d2 Remove trailing whitespace 2017-05-23 19:52:19 +01:00
Nick Hall
a80875e00c Update Travis for gramps51 2017-05-23 19:51:24 +01:00
Nick Hall
c6970e640c Do not run tests in the test directory
The tests in the GrampsLogger directory should be moved into
gramps/gui/logger/test, but mainly duplicate the existing rotate
handler test.
2017-05-08 22:47:38 +01:00
Nick Hall
55ff3efd5f The wget package is pre-installed in travis 2017-02-27 22:52:36 +00:00
Nick Hall
d59f4e86b2 Enable merge_ref_test in travis 2017-02-27 22:02:51 +00:00
Nick Hall
d71f7d7097 Fix vCard unit tests 2017-02-23 13:58:40 +00:00
Nick Hall
2692f86cd6 Add python3-jsonschema to travis 2017-02-17 21:21:51 +00:00
Paul Culley
e584704e7b Update Merge tests to actually run
So this was a lot of work...

Updated to use lxml, steep learning curve for someone who never examined XML before...

The merge test code needed some updates because it was last used with an older version of the Gramps XML.

Found another bug in the mergefamilyquery code when test started running; another nonetype issue.

Found another bug in the mergepersonquery code when test started running; another nonetype issue.

Couldn't get the subprocess stuff to work right, so changed code to just call Gramps with capture, similar to export_tests. This in turn required that importxml and exportxml be slightly changed to support StringIO redirection of stdin and stdout.

And test_util needed a change to allow stdout to accept an unencoded stream, so I added an option to use BytesIO for this test as well.

Added some code to save input, result, and expected data to files in Gramps temp directory for debugging whenever an error occurred. Easier to use my editor in diff mode than look at the outputs.
2016-12-06 11:17:54 +11:00
Paul Culley
983d787322 Change travis.yml to provide lxml dependencies 2016-12-06 11:00:45 +11:00
Sam Manzi
0a11cbf8b5
Renable user_test on travis after 2365a72d98 fix 2016-12-01 08:51:01 +11:00
kulath
fbb884b6ea Fix top level test files so they at least compile and don't interfere
with nosetests. Add these files to nosetests.
2016-08-19 21:10:07 +01:00
kulath
297f9b57c7 Remove a diagnostic.
constfunc_test.py had been edited on the travis test branch to produce
some diagnostics, and travis.yml was edited to omit the diagnostics.
2016-08-16 00:52:53 +01:00
kulath
6245d219a9 Update travis.yml so coverage works and also to load pyicu; this entails
moving to the 'trusty' distribution which has Python 3.3 (coverage needs
3.3 or more) and also a Python 3 version of pyicu. This doesn't use the
virtualenv at all, so the various pip installs are removed. There are
still some minor omissions, noted in FIXMEs; in particular, the code
should be tested under Python 3.2 (which is the minimum Gramps
requirement).
2016-08-15 23:43:54 +01:00
Elliott Sales de Andrade
ea4a4cd464 CI: Make trailing whitespace into a Travis error. 2016-05-18 20:38:35 -04:00
Doug Blank
f093c8bd79 Remove Django-style WHERE; consider Python expressions 2016-04-17 16:54:55 -04:00
Doug Blank
a605bf451f Replace dictionarydb with inmemorydb, a sqlite :memory: db 2016-04-16 23:47:29 -04:00
֍ DaAwesomeP ֎
8d3ab52904 Use new Travis container and Apt addon 2016-03-07 23:01:13 -06:00
Doug Blank
8c35de5642 Travis: python3-coverage does not exist 2016-03-01 07:33:48 -05:00
Doug Blank
70de5e8899 Travis: attempt to use coverage 2016-03-01 07:26:11 -05:00
Doug Blank
d03d99ccce Travis: working, but without coverage 2016-02-28 18:32:21 -05:00
Doug Blank
40af708cab Travis: try to find right nosetests 2016-02-28 18:25:19 -05:00
Doug Blank
689eaf2603 Travis: cleanup, include pyicu 2016-02-28 18:20:37 -05:00
Doug Blank
14c65f8de6 Travis: use pip, which should be new pip 2016-02-28 18:06:17 -05:00
Doug Blank
7448e2f1e0 Travis: use python, which is 3.4 2016-02-28 18:02:06 -05:00
Doug Blank
6a9129c7b9 Travis: try Python 3.4 2016-02-28 17:55:37 -05:00
Doug Blank
400825207a Add pillow, coverage, pip3, and codecov via alternative methods 2016-02-28 17:51:45 -05:00
Doug Blank
89cb62f3e2 Add pillow, coverage, pip3, and codecov via alternative methods 2016-02-28 16:48:36 -05:00
Doug Blank
ad3dcb8d13 Hide db._select(); Refactor db._tables; QuerySet; tests and bug fixes
db.select() has become db._select()

This commit refactors database._tables so that they can work properly
after a proxy or filter has been removed.

It adds abstract API called QuerySet which allows a variety of
selections and ordering of data.

Logging was added to sqlite to better see db access.

Additional fixes:

* clearing GenericDB._directory
* test_util_test off-by-one error
2016-02-28 15:40:16 -05:00
Doug Blank
8a02c85bde Turn on coverage/codecov in Travis 2016-02-13 08:09:03 -05:00
Doug Blank
b131121072 Remove python3-icu in testing 2016-01-23 18:00:58 -05:00
Doug Blank
feebedad65 Exclude user_test because of older version of mock; use python3-icu 2016-01-23 17:57:23 -05:00
Doug Blank
78f3b29b4c Exclude TestUser tests because of older version of mock 2016-01-23 17:50:27 -05:00
Doug Blank
44866a90f7 Use easy_install3 to install mock 2016-01-23 17:39:41 -05:00
Doug Blank
5efb313177 Get pip3 from python3-setuptools 2016-01-23 17:33:46 -05:00
Doug Blank
db6e70d24b Use built in python3 only, old version of mock 2016-01-23 17:20:23 -05:00
Doug Blank
e3e32bcddf Use python rather than python3 2016-01-23 17:05:01 -05:00
Doug Blank
02818ac867 Use python3 and forget pip 2016-01-23 16:32:30 -05:00
Doug Blank
885af4271c Use python3.4 directly 2016-01-23 16:28:29 -05:00
Doug Blank
106cff20aa Get pip a different way 2016-01-23 16:24:09 -05:00
Doug Blank
adecfe26cf Try using python3.4 specifically 2016-01-23 16:16:37 -05:00
Doug Blank
05eef13110 Try using python3-pip package 2016-01-23 16:06:42 -05:00
Doug Blank
b9e5db3563 Try using downloaded pip3.4 2016-01-23 16:02:40 -05:00
Doug Blank
4394535139 Try using built in pip3.4 2016-01-23 15:56:08 -05:00
Doug Blank
bc0562d9b3 Try using built in pip 2016-01-23 15:50:14 -05:00
Doug Blank
ec5c8cccef Try using built in pip3 2016-01-23 15:44:25 -05:00
Doug Blank
cb74c40afa Try using Python 3.4 2016-01-23 15:37:29 -05:00
Doug Blank
7aa7f26bbb Removed webapp to django-webapp project 2016-01-06 15:24:27 -05:00