-
Notifications
You must be signed in to change notification settings - Fork 14
/
Makefile
52 lines (40 loc) · 1.19 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
50
51
52
all: chan-docs plaxrun-report-plugins
go install -trimpath -ldflags="-X main.version=$$(git describe --tags) -X main.commit=$$(git rev-parse HEAD) -X main.date=$$(date +%FT%H:%M:%S.%N)" ./...
plaxrun-report-plugins:
cd cmd/plaxrun/plugins/report; make
install: all
test: unit-tests chan-docs
.PHONY: unit-tests
unit-tests:
go test -v ./...
.PHONY: demos
demos: plax-demos plaxrun-demos
.PHONY: chan-docs
chan-docs:
go test -run=Doc ./...
find . -path ./doc -prune -false -o -name 'chan_*.md' -exec mv \{\} doc \; -print
plax-demos: all
plax -dir demos -labels selftest
plaxrun-demos: all
plaxrun -run cmd/plaxrun/demos/waitrun.yaml -dir demos -g wait-test-group
.PHONY: clean
clean:
find . -name '*~' -exec rm \{\} \;
rm -rf dist
.PHONY: dist
dist: clean
goreleaser release --skip=publish --clean
.PHONY: release
release: clean
goreleaser release --clean
# A demonstratio of using a Go plug-in to load a MySQL driver at
# runtime for use in a Plax test that uses a SQL channel to talk to
# MySQL.
#
# (This test will likely fail due to a timeout when trying to talk to
# MySQL.)
.PHONY: mysql
mysql:
cd chans/sqlc/mysql && make
cd cmd/plax && go install
plax -test demos/mysql.yaml -log debug