view 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
line wrap: on
line source

from invoke import task

import sys
sys.path.append('/my/proj/release')
from release import local_release

@task
def release(ctx):
    local_release(ctx)

@task
def browser_test_build(ctx):
    ctx.run(f'docker build --network=host  -t bang:5000/patchable_graph_browser_test .')

@task(pre=[browser_test_build])
def browser_test(ctx):
    ctx.run(f'docker run '
            f'--name patchable_graph_browser_test '
            f'--rm -it '
            f'--net=host '
            f'-v `pwd`:/opt '
            f'bang:5000/patchable_graph_browser_test '
            f'/bin/bash'  #f'python3 browser_test.py',
            pty=True)