forked from pydicom/pydicom
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathfabfile.py
More file actions
32 lines (21 loc) · 696 Bytes
/
fabfile.py
File metadata and controls
32 lines (21 loc) · 696 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
# fabfile.py
"""Instructions for automated testing, building of pydicom using Fabric"""
from fabric.api import local, settings, abort
from fabric.contrib.console import confirm
import os.path
import pydicom
pydicompath = pydicom.__path__[0]
tox_ini = os.path.join(pydicompath, "../tox.ini")
def syntax():
local("reindent -r " + pydicompath)
with settings(warn_only=True):
result = local("flake8 --ignore=E501 " + pydicompath)
if result.failed and not confirm("Continue?"):
abort("Aborted due to user request")
def test():
local("python setup.py --quiet test")
def fulltest():
local("tox -c" + tox_ini)
def commit():
local("hg stat")
ci = commit