annotate lib/patchablegraph/tasks.py @ 1512:1e9cfec1be78

don't require first arg on PatchedGraph.serialize Ignore-this: bc695823e03dbd012e03efa4e40b6aca darcs-hash:1dbf9271b5ca55c78987c474ef223af9d5b811d2
author drewp <drewp@bigasterisk.com>
date Mon, 03 Feb 2020 23:46:29 -0800
parents 9733063421e1
children d98c3ffe7144
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
1317
43791ec0beb2 make patchablegraph release
drewp <drewp@bigasterisk.com>
parents:
diff changeset
1 from invoke import task
43791ec0beb2 make patchablegraph release
drewp <drewp@bigasterisk.com>
parents:
diff changeset
2
43791ec0beb2 make patchablegraph release
drewp <drewp@bigasterisk.com>
parents:
diff changeset
3 import sys
43791ec0beb2 make patchablegraph release
drewp <drewp@bigasterisk.com>
parents:
diff changeset
4 sys.path.append('/my/proj/release')
43791ec0beb2 make patchablegraph release
drewp <drewp@bigasterisk.com>
parents:
diff changeset
5 from release import local_release
43791ec0beb2 make patchablegraph release
drewp <drewp@bigasterisk.com>
parents:
diff changeset
6
43791ec0beb2 make patchablegraph release
drewp <drewp@bigasterisk.com>
parents:
diff changeset
7 @task
43791ec0beb2 make patchablegraph release
drewp <drewp@bigasterisk.com>
parents:
diff changeset
8 def release(ctx):
43791ec0beb2 make patchablegraph release
drewp <drewp@bigasterisk.com>
parents:
diff changeset
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 '
9733063421e1 add browser_test server for playing with /graph resource
drewp <drewp@bigasterisk.com>
parents: 1317
diff changeset
23 f'/bin/bash' #f'python3 browser_test.py',
9733063421e1 add browser_test server for playing with /graph resource
drewp <drewp@bigasterisk.com>
parents: 1317
diff changeset
24 pty=True)