view lib/patchablegraph/tasks.py @ 1544:33076ad439d1

fixes to TS and page build. remove some unused attempts at binding to <streamed-graph> Ignore-this: dc4cd74d21fef101b32da824bbf60a00 darcs-hash:46f8164157442fb22e93a3e2062ffbcd20b43350
author drewp <drewp@bigasterisk.com>
date Thu, 13 Feb 2020 10:17:54 -0800
parents c829df2b0dd5
children
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)