Hi Tibor,

But I need to test both versions *alongside* -- on the same core, and
I need to edit code of both of them at the same time, compare how they
do. So unless I miss something, you could hardly do that in 0.3 s, and
I can't do that even in 3 minutes :), because my brain loses track of
which version I am at right now. It just can't accept the unnecessary
complexity, it is ugly to it, re-install the whole invenio in order to
test one module feels so bad, that I have to run away (...and on my
computer(s) it takes >20s). But if sb could show me these things are
easy and not complex like hell with git/autotools, I am ready to talk
to my brain again ;-)

roman

On Fri, Aug 27, 2010 at 4:14 PM, Tibor Simko <[email protected]> wrote:
> On Thu, 26 Aug 2010, Roman Chyla wrote:
>> How would you go about running different versions of a module (say
>> bibclassify) that depends on invenio core? (assuming the module is
>> standalone, and the functions of the invenio core are ok for all
>> versions).  [...] How would you swap modules inside invenio for a
>> quick testing?
>
> Quick testing of bibclassify while the other core modules do not change?
> If so, why not to simply switch branches and reinstall, in the true
> autotools spirit?
>
>  $ cd modules/bibclassify/lib
>  ... let's work on a new feature-a:
>  $ git checkout -b bibclassify-feature-a
>  ... edit, run, edit, run, commit, test on some file:
>  $ bibclassify -k HEP /tmp/0101001.pdf > /tmp/0101001.res
>  ... cool, but let's see how special file troublesome.pdf performs:
>  $ bibclassify -k HEP /tmp/troublesome.pdf > /tmp/troblesome.res
>  ... oops, traceback, so let's rewind to check previous version:
>  $ git checkout master && mi
>  $ bibclassify -k HEP /tmp/0101123.pdf > /tmp/0101123.res.master
>  $ bibclassify -k HEP /tmp/troublesome.pdf > /tmp/troublesome.res.master
>  ... yes, both work fine, so bug must be in my latest edits in feature-a
>
> where `mi' is the usual:
>
>  make -s && sudo -u www-data make -s install && \
>        sudo -u www-data /opt/cds-invenio/bin/inveniocfg --update-all && \
>        sudo -u www-data touch /opt/cds-invenio/var/www-wsgi/invenio.wsgi
>
> The branch switching and reinstalling takes 0.3 sec for me, so it is
> quick and easy.
>
> Best regards
> --
> Tibor Simko
>

Reply via email to