forked from chevah/github-hooks-server
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
37 lines (23 loc) · 673 Bytes
/
Makefile
File metadata and controls
37 lines (23 loc) · 673 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
all: test
clean:
rm -rf build
env:
@if [ ! -d "build" ]; then virtualenv build; fi
deps: env
@build/bin/pip install -Ue '.[dev]' \
--index-url http://pypi.chevah.com/simple \
--trusted-host pypi.chevah.com
run:
@build/bin/python \
scripts/start-chevah-github-hooks.py \
test/config.ini \
--port tcp:8080 \
--nodaemon
HEADERS := $(shell while read line; do echo -n "-H '$$line' "; done < test/payload_headers)
payload:
curl -v $(HEADERS) -d @test/payload_content localhost:8080/buildmaster
lint:
@build/bin/pyflakes chevah/ scripts/
@build/bin/pep8 chevah/ scripts/
test:
@build/bin/nosetests chevah.github_hooks_server.tests -v --with-id