File: depth_first.py

package info (click to toggle)
python-invoke 1.4.1%2Bds-0.1
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 1,704 kB
  • sloc: python: 11,377; makefile: 18; sh: 12
file content (41 lines) | stat: -rw-r--r-- 511 bytes parent folder | download | duplicates (3)
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
from invoke import task


@task
def clean_html(c):
    print("Cleaning HTML")


@task
def clean_tgz(c):
    print("Cleaning .tar.gz files")


@task(clean_html, clean_tgz)
def clean(c):
    print("Cleaned everything")


@task
def makedirs(c):
    print("Making directories")


@task(clean, makedirs)
def build(c):
    print("Building")


@task
def pretest(c):
    print("Preparing for testing")


@task(pretest)
def test(c):
    print("Testing")


@task(build, post=[test])
def deploy(c):
    print("Deploying")