forked from ringo-framework/ringo
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathtasks.py
More file actions
29 lines (23 loc) · 787 Bytes
/
tasks.py
File metadata and controls
29 lines (23 loc) · 787 Bytes
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
from invoke import run, task
@task
def clean():
"""Will remove swp, rej, pyc, orig files"""
run("find . -name \*.swp -delete")
run("find . -name \*.swo -delete")
run("find . -name \*.rej -delete")
run("find . -name \*.orig -delete")
run("find . -name \*.pyc -delete")
@task
def docs(doctype="html", zip=False, show=False):
"""Will build the documentation"""
run("cd docs; make %s" % doctype)
run("cp -r docs/build/html ringo/static/doc")
run("cp -r docs/build/html ringo/static/doc")
if doctype == "html" and zip:
run("cd docs/build/html/; zip -r ../doc.zip *")
if show:
run("cd docs/build/html/; firefox index.html")
@task
def test():
run("ringo-admin db init --config=test.ini")
run("python setup.py test")