forked from genesis-matrix/flowstate
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtasks.py
More file actions
45 lines (28 loc) · 613 Bytes
/
tasks.py
File metadata and controls
45 lines (28 loc) · 613 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
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
#!/bin/false
# -*- coding: utf-8 -*-
from __future__ import print_function
#
import os
import sys
from logging import Logger
#
from invoke import Collection, task
log = Logger(__name__)
# create variable for 'root' namespace, notably creating a 'root' namespace inhibits implicitly importing task functions
ns = Collection()
@task
def clean(c):
c.run("git clean -df")
@task
def test(c):
c.run("pipenv run pytest")
@task
def check(c):
c.run("pipenv run pre-commit")
@task
def stage(c):
c.run("git add --all")
@task
def build(c):
c.run("pipenv run python setup.py build")
# EOF