forked from ggozad/behaving
-
Notifications
You must be signed in to change notification settings - Fork 0
/
buildout.cfg
47 lines (35 loc) · 943 Bytes
/
buildout.cfg
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
[buildout]
extensions =
mr.developer
eggs = behaving
parts = behave
test
show-picked-versions = true
develop = .
[behave]
recipe = zc.recipe.egg
eggs = behaving
behave
interpreter = tpy
[test]
recipe = collective.recipe.cmd
on_install = true
on_update = true
cmds =
cat <<EOF > ${buildout:directory}/bin/test
#!/bin/sh
mkdir -p ${buildout:directory}/var/sms
mkdir -p ${buildout:directory}/var/mail
${buildout:directory}/bin/smsmock -o ./var/sms &
sms_pid=\$!
${buildout:directory}/bin/mailmock -o ./var/mail &
mail_pid=\$!
cd ${buildout:directory}/src/behaving/tests/www
python -m SimpleHTTPServer 8080 &
www_pid=\$!
${buildout:directory}/bin/behave \$1 ${buildout:directory}/src/behaving/tests/features
kill \$sms_pid
kill \$mail_pid
kill \$www_pid
EOF
chmod a+x ${buildout:directory}/bin/test