-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
49 lines (41 loc) · 1.04 KB
/
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
44
45
46
47
48
49
.PHONY:build
build:
dune build
.PHONY:test
test:
OCAMLRUNPARM=b dune exec bin/main.exe
@echo "ok"
.PHONY: integration
integration:
dune build @integration --release
@echo "ok"
.PHONY: clean
clean:
dune clean
.PHONY: stress
stress:
dune build stress/stress.exe
time _build/default/stress/stress.exe
.PHONY: flow
flow:
dune build stress/flow.exe
time _build/default/stress/flow.exe
.PHONY: doc
doc:
dune build @doc
.PHONY: update-spec
update-spec:
@echo "Retrieving AMQP spec from RabbitMQ servers"
curl --fail https://www.rabbitmq.com/resources/specs/amqp0-9-1.extended.xml > spec/amqp0-9-1.extended.xml
.PHONY: gp-pages
gh-pages: doc
git clone `git config --get remote.origin.url` .gh-pages --reference .
git -C .gh-pages checkout --orphan gh-pages
git -C .gh-pages reset
git -C .gh-pages clean -dxf
cp -r _build/default/_doc/_html/* .gh-pages
git -C .gh-pages add .
git -C .gh-pages config user.email 'docs@amqp-client'
git -C .gh-pages commit -m "Update documentation"
git -C .gh-pages push origin gh-pages -f
rm -rf .gh-pages