-
Notifications
You must be signed in to change notification settings - Fork 41
/
Copy pathMakefile
52 lines (38 loc) · 1 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
%:
@:
.PHONY: all build test check clean doc
args = `arg="$(filter-out $@,$(MAKECMDGOALS))" && echo $${arg:-${1}}`
CARGO = cargo
all: test build
build:
npm run build
test:
pkill -f "mithril-aggregator-fake" || true
${CARGO} run -p mithril-aggregator-fake -- -p 8000 &
if ! wasm-pack test --headless --firefox --chrome --release; then \
pkill -f "mithril-aggregator-fake" || true; \
exit 1; \
fi
if ! wasm-pack test --node --release --features test-node; then \
pkill -f "mithril-aggregator-fake" || true; \
exit 1; \
fi
pkill -f "mithril-aggregator-fake" || true
check:
${CARGO} check --release --all-features --all-targets
${CARGO} clippy --release --all-features --all-targets
${CARGO} fmt --check
clean:
${CARGO} clean
doc:
${CARGO} doc --no-deps --open --features full
ci-test-install:
npm --prefix ci-test install
ci-test-serve:
npm --prefix ci-test run start
upgrade-ci-test-deps: build
make -C ci-test upgrade
lint:
make -C ci-test lint
format:
make -C ci-test format