Closed Bug 654412 Opened 14 years ago Closed 14 years ago

Hudson build script for running tests

Categories

(Webtools Graveyard :: Elmo, defect)

defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: peterbe, Assigned: peterbe)

Details

Attachments

(1 file)

We need a build script for Hudson. That sets up a virtualenv, pulls down all code and runs all relevant tests.
This is taken from having manually typed in a build script in the Hudson configure textarea. There are still some ugly edges and question marks I'd like to iron out. Hence having a bug about it.
Attachment #529684 - Flags: review?(l10n)
Attachment #529684 - Attachment is patch: true
Comment on attachment 529684 [details] [diff] [review] First working attempt Review of attachment 529684 [details] [diff] [review]: ::: scripts/build.sh @@ +7,5 @@ + + +find . -name '*.pyc' -delete; + +virtualenv elmo_env should we make this a --no-site-packages ? @@ +41,5 @@ +pip install -q MySQL-python==1.2.3c1 +pip install -q mercurial +pip install -q hmac==20101005 +pip install -q hashlib==20081119 +pip install -q py-bcrypt==0.2 do we need to specify the virtualenv here? I just had an odd experience with pip not doing that by default, IIRC. Can't hurt to have it, I guess.
Technical jargon: doing review comments without setting the review flag to either + or - means that the r+ or - depends on the answers on the questions still.
(In reply to comment #2) > Comment on attachment 529684 [details] [diff] [review] [review] > First working attempt > > Review of attachment 529684 [details] [diff] [review] [review]: > > ::: scripts/build.sh > @@ +7,5 @@ > + > + > +find . -name '*.pyc' -delete; > + > +virtualenv elmo_env > > should we make this a --no-site-packages ? > Fixed and tested. Still works. > @@ +41,5 @@ > +pip install -q MySQL-python==1.2.3c1 > +pip install -q mercurial > +pip install -q hmac==20101005 > +pip install -q hashlib==20081119 > +pip install -q py-bcrypt==0.2 > > do we need to specify the virtualenv here? I just had an odd experience with > pip not doing that by default, IIRC. Can't hurt to have it, I guess. ? I don't understand. The reason I don't do something like `pip install -r requirements/foo.txt` is because of a problem with building python-ldap and the fact that we strangely still have django in requirements/prod.txt.
(In reply to comment #4) > (In reply to comment #2) <...> > > @@ +41,5 @@ > > +pip install -q MySQL-python==1.2.3c1 > > +pip install -q mercurial > > +pip install -q hmac==20101005 > > +pip install -q hashlib==20081119 > > +pip install -q py-bcrypt==0.2 > > > > do we need to specify the virtualenv here? I just had an odd experience with > > pip not doing that by default, IIRC. Can't hurt to have it, I guess. > > ? I don't understand. > > The reason I don't do something like `pip install -r requirements/foo.txt` is > because of a problem with building python-ldap and the fact that we strangely > still have django in requirements/prod.txt. I was thinking about pip install -E elmo_env -q ...
Comment on attachment 529684 [details] [diff] [review] First working attempt one final nit, \ No newline at end of file I'm awkward with those.
Attachment #529684 - Flags: review?(l10n) → review+
carrying over from irc, the -E stuff shouldn't be needed, can't reproduce the problems I had without that.
Pushed. (need to look for a pre-commit hook that checks for lacking newline endings)
Status: NEW → RESOLVED
Closed: 14 years ago
Resolution: --- → FIXED
Target Milestone: --- → 1.2
Assignee: nobody → peterbe
Product: Webtools → Webtools Graveyard
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: