Mercurial > code > home > repos > homeauto
annotate lib/patchablegraph/tasks.py @ 1529:0e0713fd23e7
build: place generated nim in its own dir
Ignore-this: 89c9a75595f0465d4efc44ef1b96abd7
darcs-hash:6a695011fe841ce7d6c020ebc33b6099ff26d964
author | drewp <drewp@bigasterisk.com> |
---|---|
date | Thu, 23 Jan 2020 23:59:41 -0800 |
parents | c829df2b0dd5 |
children |
rev | line source |
---|---|
1317 | 1 from invoke import task |
2 | |
3 import sys | |
4 sys.path.append('/my/proj/release') | |
5 from release import local_release | |
6 | |
7 @task | |
8 def release(ctx): | |
9 local_release(ctx) | |
1511
9733063421e1
add browser_test server for playing with /graph resource
drewp <drewp@bigasterisk.com>
parents:
1317
diff
changeset
|
10 |
9733063421e1
add browser_test server for playing with /graph resource
drewp <drewp@bigasterisk.com>
parents:
1317
diff
changeset
|
11 @task |
9733063421e1
add browser_test server for playing with /graph resource
drewp <drewp@bigasterisk.com>
parents:
1317
diff
changeset
|
12 def browser_test_build(ctx): |
9733063421e1
add browser_test server for playing with /graph resource
drewp <drewp@bigasterisk.com>
parents:
1317
diff
changeset
|
13 ctx.run(f'docker build --network=host -t bang:5000/patchable_graph_browser_test .') |
9733063421e1
add browser_test server for playing with /graph resource
drewp <drewp@bigasterisk.com>
parents:
1317
diff
changeset
|
14 |
9733063421e1
add browser_test server for playing with /graph resource
drewp <drewp@bigasterisk.com>
parents:
1317
diff
changeset
|
15 @task(pre=[browser_test_build]) |
9733063421e1
add browser_test server for playing with /graph resource
drewp <drewp@bigasterisk.com>
parents:
1317
diff
changeset
|
16 def browser_test(ctx): |
9733063421e1
add browser_test server for playing with /graph resource
drewp <drewp@bigasterisk.com>
parents:
1317
diff
changeset
|
17 ctx.run(f'docker run ' |
9733063421e1
add browser_test server for playing with /graph resource
drewp <drewp@bigasterisk.com>
parents:
1317
diff
changeset
|
18 f'--name patchable_graph_browser_test ' |
9733063421e1
add browser_test server for playing with /graph resource
drewp <drewp@bigasterisk.com>
parents:
1317
diff
changeset
|
19 f'--rm -it ' |
9733063421e1
add browser_test server for playing with /graph resource
drewp <drewp@bigasterisk.com>
parents:
1317
diff
changeset
|
20 f'--net=host ' |
9733063421e1
add browser_test server for playing with /graph resource
drewp <drewp@bigasterisk.com>
parents:
1317
diff
changeset
|
21 f'-v `pwd`:/opt ' |
9733063421e1
add browser_test server for playing with /graph resource
drewp <drewp@bigasterisk.com>
parents:
1317
diff
changeset
|
22 f'bang:5000/patchable_graph_browser_test ' |
1513
c829df2b0dd5
new graph output for browsers, with autorefresh
drewp <drewp@bigasterisk.com>
parents:
1511
diff
changeset
|
23 f'/bin/bash', #f'python3 browser_test.py', |
1511
9733063421e1
add browser_test server for playing with /graph resource
drewp <drewp@bigasterisk.com>
parents:
1317
diff
changeset
|
24 pty=True) |