forked from bet365/soap
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
32 lines (26 loc) · 682 Bytes
/
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
.PHONY: all compile clean ct test_deps
all: compile
compile:
@echo "Fetching dependencies..."
@rebar get-deps
@echo "Compiling..."
@rebar compile
ct: compile test_deps
@echo "Running common tests..."
-@ct_run -noshell -pa ebin \
-pa deps/*/ebin \
-pa test/deps/*/ebin \
-name test \
-logdir ./logs \
-env TEST_DIR ./test \
-spec ./test/test_specs.spec \
-dir test >> ./logs/raw.log 2>&1
@grep -h "TEST COMPLETE" logs/raw.log | tail -1
test_deps:
@echo "Checking dependencies for test..."
@cd test && rebar get-deps && rebar compile && cd ..
clean:
@rebar clean
@cd test && rebar clean && cd ..
distclean: clean
@rm -rf ./deps/ && rm -rf ./test/deps/