-
Notifications
You must be signed in to change notification settings - Fork 13
/
Copy pathMakefile
75 lines (64 loc) · 1.5 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
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
SHELL := /bin/bash
.PHONY: install
install: build-les build-les-node build-les-viz
.PHONY: build-les
build-les:
cd cmd/les \
&& go get \
&& go install
.PHONY: build-les-node
build-les-node:
cd cmd/les-node \
&& go get \
&& go install
build-les-viz:
cd cmd/les-viz \
&& go get \
&& go install
.PHONY: test-all
test-all: unit-test test-samples-are-valid test-emd-compliance test-eml-compliance
echo "COMPLIANCE TESTS PASS."
.PHONY: unit-test
unit-test:
go test ./...
.PHONY: test-eml-compliance
test-eml-compliance:
cd cmd/compliance-test/eml \
&& sleep 2 \
&& make setup && sleep 2 && make test \
&& make teardown
.PHONY: test-emd-compliance
test-emd-compliance:
cd cmd/compliance-test/emd \
&& sleep 2 \
&& make setup && sleep 2 && make test \
&& make teardown
.PHONY: test-samples-are-valid
test-samples-are-valid:
cd samples/consentaur \
&& les validate \
&& echo "samples/email" \
&& cd ../email \
&& les validate \
&& echo "samples/helloworld" \
&& cd ../helloworld \
&& les validate \
&& echo "samples/inventory" \
&& cd ../inventory \
&& les validate \
&& echo "samples/subscriptions" \
&& cd ../subscriptions \
&& les validate \
&& echo "samples/timesheets" \
&& cd ../timesheets \
&& les validate \
&& echo "samples/todolist" \
&& cd ../todolist \
&& les validate \
&& echo "samples//users" \
&& cd ../users \
&& les validate Eventsourcing.eml.yaml \
&& echo "samples/veggiesgalore" \
&& cd ../veggiesgalore \
&& les validate \
&& echo "SAMPLES VALIDATION TESTS PASS."