forked from yetanalytics/datasim
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Makefile
67 lines (48 loc) · 2.66 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
.PHONY: clean bundle test-cli test-cli-comprehensive test-cli-output test-unit test-unit-onyx ci server test-bundle-output validate-template
GROUP_ID ?= com.yetanalytics
ARTIFACT_ID ?= datasim
VERSION ?= 0.3.0
MAIN_NS ?= com.yetanalytics.datasim.main
clean:
rm -rf target
target/bundle/datasim_cli.jar:
mkdir -p target/bundle
rm -f pom.xml
clojure -X:depstar uberjar :no-pom false :sync-pom true :aliases '[:cli]' :aot true :group-id $(GROUP_ID) :artifact-id $(ARTIFACT_ID)-cli :version '"$(VERSION)"' :jar target/bundle/datasim_cli.jar :main-class com.yetanalytics.datasim.main
rm -f pom.xml
target/bundle/datasim_server.jar: # no AOT for this one
mkdir -p target/bundle
rm -f pom.xml
clojure -X:depstar uberjar :no-pom false :sync-pom true :aliases '[:server]' :aot true :group-id $(GROUP_ID) :artifact-id $(ARTIFACT_ID)-server :version '"$(VERSION)"' :jar target/bundle/datasim_server.jar :main-class com.yetanalytics.datasim.server
rm -f pom.xml
target/bundle/datasim_onyx.jar:
mkdir -p target/bundle
rm -f pom.xml
TIMBRE_LOG_LEVEL=:info clojure -X:depstar uberjar :no-pom false :sync-pom true :aliases '[:onyx,:cli]' :aot true :group-id $(GROUP_ID) :artifact-id $(ARTIFACT_ID)-onyx :version '"$(VERSION)"' :jar target/bundle/datasim_onyx.jar :main-class com.yetanalytics.datasim.onyx.main
rm -f pom.xml
target/bundle/bin:
mkdir -p target/bundle/bin
cp -r scripts/*.sh target/bundle/bin
chmod +x target/bundle/bin
target/bundle: target/bundle/bin target/bundle/datasim_cli.jar target/bundle/datasim_server.jar target/bundle/datasim_onyx.jar
bundle: target/bundle
test-unit:
clojure -Adev:cli:run-tests
test-unit-onyx:
clojure -Adev:cli:onyx:run-onyx-tests
test-cli:
clojure -A:cli:run -p dev-resources/profiles/cmi5/fixed.json -a dev-resources/personae/simple.json -l dev-resources/alignments/simple.json -o dev-resources/parameters/simple.json validate-input dev-resources/input/simple.json
test-cli-comprehensive:
clojure -A:cli:run -i dev-resources/input/simple.json validate-input dev-resources/input/simple.json
test-cli-output:
clojure -A:cli:run -i dev-resources/input/simple.json generate
test-bundle-output: bundle
cd target/bundle; bin/run.sh -i ../../dev-resources/input/simple.json generate
validate-template:
AWS_PAGER="" aws cloudformation validate-template --template-body file://template/0_vpc.yml
AWS_PAGER="" aws cloudformation validate-template --template-body file://template/1_hose.yml
AWS_PAGER="" aws cloudformation validate-template --template-body file://template/1_zk.yml
AWS_PAGER="" aws cloudformation validate-template --template-body file://template/2_cluster.yml
ci: test-unit test-unit-onyx test-cli validate-template
server:
clojure -A:server