Closed
Bug 654412
Opened 14 years ago
Closed 14 years ago
Hudson build script for running tests
Categories
(Webtools Graveyard :: Elmo, defect)
Tracking
(Not tracked)
RESOLVED
FIXED
1.2
People
(Reporter: peterbe, Assigned: peterbe)
Details
Attachments
(1 file)
|
1.63 KB,
patch
|
Pike
:
review+
|
Details | Diff | Splinter Review |
We need a build script for Hudson. That sets up a virtualenv, pulls down all code and runs all relevant tests.
| Assignee | ||
Comment 1•14 years ago
|
||
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)
Updated•14 years ago
|
Attachment #529684 -
Attachment is patch: true
Comment 2•14 years ago
|
||
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.
Comment 3•14 years ago
|
||
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.
| Assignee | ||
Comment 4•14 years ago
|
||
(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.
Comment 5•14 years ago
|
||
(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 6•14 years ago
|
||
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+
Comment 7•14 years ago
|
||
carrying over from irc, the -E stuff shouldn't be needed, can't reproduce the problems I had without that.
| Assignee | ||
Comment 8•14 years ago
|
||
Pushed.
(need to look for a pre-commit hook that checks for lacking newline endings)
Status: NEW → RESOLVED
Closed: 14 years ago
Resolution: --- → FIXED
Updated•14 years ago
|
Target Milestone: --- → 1.2
Updated•11 years ago
|
Assignee: nobody → peterbe
Updated•5 years ago
|
Product: Webtools → Webtools Graveyard
You need to log in
before you can comment on or make changes to this bug.
Description
•