Debian Codegraph @

tests/_support/depth_first.py

raw
1 from invoke import task
2
3
4 @task
5 def clean_html(c):
6 print("Cleaning HTML")
7
8
9 @task
10 def clean_tgz(c):
11 print("Cleaning .tar.gz files")
12
13
14 @task(clean_html, clean_tgz)
15 def clean(c):
16 print("Cleaned everything")
17
18
19 @task
20 def makedirs(c):
21 print("Making directories")
22
23
24 @task(clean, makedirs)
25 def build(c):
26 print("Building")
27
28
29 @task
30 def pretest(c):
31 print("Preparing for testing")
32
33
34 @task(pretest)
35 def test(c):
36 print("Testing")
37
38
39 @task(build, post=[test])
40 def deploy(c):
41 print("Deploying")