Sunday, January 4, 2015

Getting started on Travis

Tilt! (see yesterday) The test suite on travis fails because fab initdb has not been running. So in Lino’s .travis.yml I replace:

script: python setup.py test

by:

script: fab initdb test

And yes (Python is cool): it works. The next build successfully initializes all demo databases.

But still some test cases fail with an OperationalError: no such table: users_user. Strange. I can reproduce it locally:

$ cd ~/tmp
$ virtualenv 0104
$ . 0104/bin/activate
$ go lino
$ pip install .
$ fab initdb test

Maybe it is because the database files (default.db) get written to the source tree? To be continued…

Error reporting atelier

I optimized atelier error reporting in some edge situations:

  • rstgen.sphinxconf.blog failed with a strange error message when trying to build a doctree with a blogger_index directive but with no blog entry at all.

  • When atelier.projects.add_project() was used to declare a project which had no fabfile.py, this caused an irritating ImportError: No module named fabfile even when a fab command was invoked from another project.

  • I reformulated the error message Check doc_trees in your project's main module. by Check your project's doc_trees setting.