forked from Debian/debsources
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
43 lines (29 loc) · 761 Bytes
/
Makefile
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
NOSE = nosetests
FLAKE = flake8
SRCDIR = debsources
BINDIR = bin
TESTDIR = $(SRCDIR)/tests
TESTFLAGS = -v
all:
@echo 'Nothing to do by default, maybe you want "make test"?'
@false
doc:
$(MAKE) -C doc/
test: test-fast
test-all:
$(NOSE) $(TESTFLAGS) $(TESTDIR)
test-fast:
$(NOSE) $(TESTFLAGS) $(TESTDIR) -a \!slow
test-slow:
$(NOSE) $(TESTFLAGS) $(TESTDIR) -a slow
test-travis:
$(NOSE) $(TESTFLAGS) $(TESTDIR) -a \!notravis
test-coverage:
$(NOSE) $(TESTFLAGS) $(TESTDIR) --with-coverage --cover-package=debsources
check:
$(FLAKE) $(SRCDIR)/ $(shell grep -H 'env python' $(BINDIR)/debsources-* | cut -f 1 -d :)
test-online-app:
contrib/test-online-app
clean:
$(MAKE) -C doc $@
.PHONY: all doc test test-all test-fast test-slow check clean