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