forked from tremor-rs/tremor-runtime
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
51 lines (41 loc) · 1.31 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
APP=tremor-runtime
DOCKER_VSN=$(shell grep 'ARG tag' docker/tremor-runtime.dockerfile | sed 's/.*=//')
CARGO_VSN=$(shell grep '^version' Cargo.toml | sed -e 's/.*=[^"]*"//' -e 's/"$$//')
VSN=$(DOCKER_VSN)
YEAR=2018-2020
help:
@echo "This makefile wraps the tasks:"
@echo " image - builds the image"
@echo " demo - runs a simple demo"
@echo " bench - runs benchmarks"
@echo " it - runs integration tests"
image:
docker-compose build
demo: image
-docker-compose -f demo/demo.yaml rm -fsv
-docker-compose -f demo/demo.yaml up
-docker-compose -f demo/demo.yaml rm -fsv
it:
integration_testing/runner
stdlib-doc:
cargo build -p tremor-script;
-rm -rf docs;
for file in `find tremor-script/lib -type f`; do \
dir=`dirname $$file | sed -e 's;^tremor-script/lib;docs;'`;\
base=`basename $$file`;\
output_file=`echo $$base | sed -e 's/.tremor/.md/'`;\
echo "$$file -> $$dir/$$output_file"; \
[ -d $$dir ] || mkdir -p $$dir;\
TREMOR_PATH=./tremor-script/lib ./target/debug/tremor-script $$file --docs $${output_file%.*} > $$dir/$$output_file;\
done
bench: force
cargo build --release -p tremor-server
./bench/all.sh | tee bench-`date +%s`.txt
force:
true
chk_copyright:
@./.github/checks/copyright.sh
chk:
@./.github/checks/safety.sh -a
dep-list:
@cargo tree --all | sed -e 's/[^a-z]*\([a-z]\)/\1/' | sort -u