Greg,

That is a good idea. I was thinking of possibly using buildbot to do that job as well. Of course, if a dist script is created it can always just call that instead so you idea probably provides the best basic solution. I believe you did mention one release process script from subversion so I will investigate that. Thanks.

Olemis,

My buildbot master.cfg needs a bit of redacting so I will try to fix that and commit it to the repository for others to suggest improvements by Monday or Tuesday. Anyway, I believe that this is a relevant snippet from my code:

   instdir = os.path.join("build", "installer")
   env = {'PATH': os.path.abspath("build/installer/bloodhound/bin") +
   ":${PATH}",
           'PYTHONPATH':
   os.path.abspath("build/installer/bloodhound/lib/python2.7")}
   envdir = 'bloodhound'
   pip = os.path.join(envdir, 'bin', 'pip')

   factory.addStep(ShellCommand(command=["virtualenv",
   "--no-site-packages", envdir], workdir=instdir, name="install
   virtualenv"))
   factory.addStep(ShellCommand(command=[pip, 'install', '-r',
   reqsfile], workdir=instdir, env=env, name="install packages"))
   factory.addStep(ShellCommand(command=[python, 'bloodhound_setup.py',
   '-d', 'sqlite',
                                          '--admin-user=' + adminuser,
   '--admin-password=' + adminpassword], workdir=instdir, name="setup"))

steps after this were all tests of one sort or another followed by a removal of the bloodhound directory for a bit of cleanup just in case the buildslave is persistent.

Cheers,
    Gary


On 08/03/2012 07:31 AM, Greg Stein wrote:
I'd also recommend creating a "dist.sh" script for assembling the
tarball. For example, I queried if the wireframes should be
distributed, and the answer was "no". That implies that assembling the
tarball requires an "rm" step somewhere after the "svn export". It
would be nice to script that, rather than following a list of manual
steps.

I believe that I've posted example dist.sh types of scripts, but would
be happy to repost if needed.

Cheers,
-g

On Fri, Aug 3, 2012 at 12:26 AM, Olemis Lang <[email protected]> wrote:
could you share your build script , please ?

On 8/1/12, Gary Martin <[email protected]> wrote:
On 02/08/12 01:57, Olemis Lang wrote:
On 8/1/12, Gary Martin <[email protected]> wrote:
On 30/07/12 12:48, Joachim Dreimann wrote:
Just for the record, I have downloaded reviewed the files to my
technical
ability.

+1 for the release from me.

I second that . The only thing I can mention is that even if manual
installation procedure works for me , on the other hand all the
attempts I made so as to install it from tarball in a Jenkins build
job have failed . This is mainly because :

1. I'm not a proficient Jenkins user ...
2. it seems there's an issue with virtualenv somewhere and ...
3. I've not been able to dedicate any time to this task after the
      few initial experiments
I appear to have been able to get things going with Buildbot with the
virtualenv instructions, although I am not convinced that you can really
activate the virtualenv in a buildstep. I didn't try this and instead
resorted to a bit of trickery through which python binary was used after
virtualenv creation.

To be fair, there is no specific need to use virtualenv, as long as you
have a fresh environment each time. My attempts so far have not been
with throwaway VMs. Of course, I am sure that there will be other ways
to isolate a python environment.

Cheers,
      Gary


--
Regards,

Olemis.

Blog ES: http://simelo-es.blogspot.com/
Blog EN: http://simelo-en.blogspot.com/

Featured article:

Reply via email to