qwat / qwat-data-model

TEKSI Water module (project QWAT) - PostgreSQL / postgis Datamodel
https://www.teksi.ch
23 stars 24 forks source link

Deploy demodata automatically from travis #204

Closed m-kuhn closed 6 years ago

m-kuhn commented 6 years ago

A.k.a. "continuous deployment"

Pum is now installed using pip from pypi, the submodule has been removed.

This should only be merged, once we have a clean migration path with a green travis.

You can find a sample on what the new download page looks like here: https://github.com/m-kuhn/qwat-data-model/releases/tag/9.9

haubourg commented 6 years ago

Nice! mid november is already there :) python 3 seems to fail in initializing QWAT. Old Travis scripts are using python 2.7. @3nids @sylvainbeo any opinion if porting python scripts to python3 is the best option?

sylvainbeo commented 6 years ago

No opinion for me right now, i'm not experimented with python 3.

m-kuhn commented 6 years ago

Let's see if it's only some trivial prints and stuff

m-kuhn commented 6 years ago

Migration scripts should work portable now (python2 or python3)

metaproject seems to be missing a patch though https://travis-ci.org/qwat/qwat-data-model/builds/290391405#L2263-L2270

m-kuhn commented 6 years ago

The code it seems to fail on in metaproject is not clear to me:

https://github.com/opengisch/metaproject/commit/6f0bb1abbbddfe2d72302d52b68fab77ec3aa527#commitcomment-25094829

m-kuhn commented 6 years ago

And here's the error:

UnboundLocalError: local variable 'child' referenced before assignment

https://travis-ci.org/qwat/qwat-data-model/builds/290391405#L2672

3nids commented 6 years ago

@m-kuhn @sylvainbeo I think the error was a bit further. Can you try with https://github.com/opengisch/metaproject/pull/6

m-kuhn commented 6 years ago

Thanks @3nids

@sylvainbeo feel free to merge if this unblocks you :+1:

sylvainbeo commented 6 years ago

Indeed that was easy :)