-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtasks.py
47 lines (33 loc) · 821 Bytes
/
tasks.py
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
import sys
import os
import typing as tp
import invoke
#-------------------------------------------------------------------------------
@invoke.task
def clean(context):
'''Clean doc and build artifacts
'''
context.run('rm -rf .asv')
context.run('rm -rf .pytest_cache')
context.run('rm -rf docs')
@invoke.task
def benchtest(context):
'''Clean doc and build artifacts
'''
context.run('asv dev')
@invoke.task
def bench08(context):
'''Clean doc and build artifacts
'''
context.run('asv run v0.8.0..master --skip-existing')
@invoke.task
def publish(context):
context.run('asv publish')
@invoke.task
def preview(context):
context.run('asv preview')
@invoke.task(pre=(bench08, publish, preview))
def bpp(context):
'''bench, publihs, preview
'''
pass