-
Notifications
You must be signed in to change notification settings - Fork 1
/
Makefile
59 lines (45 loc) · 1.15 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
# B4 - COMPUTER NUMERICAL ANALYSIS
# -----------------------
# TRADE PROJECT
#
# Repository:
# https://github.com/sheiiva/CNA_trade
#
# (05/20/2020)
# Authors: Corentin COUTRET-ROZET <corentin.rozet@epitech.eu>
# Patricia Monfa-Matas <patricia.monfa-matas@epitech.eu>
#
NAME = trade
RM = @rm -f
PRINT = @echo -e
INCLUDE = includes/
SOURCES = sources/
TESTS = tests/
TESTS_SRC = $(TESTS)t_Rate.py \
$(TESTS)t_Candle.py \
$(TESTS)t_Logger.py \
$(TESTS)t_Stack.py \
$(TESTS)t_Transaction.py \
$(TESTS)t_Utilities.py
$(NAME):
@cp $(SOURCES)main.py $@
@chmod +x $@
$(PRINT) "\n------->\tBINARY CREATED\n"
all: $(NAME)
clean:
$(PRINT) "\n------->\tREMOVE PYCACHE\n"
$(RM) -r __pycache__
$(RM) -r $(INCLUDE)__pycache__
$(RM) -r $(SOURCES)__pycache__
$(RM) -r $(SOURCES)utils/__pycache__
$(RM) -r $(TESTS)__pycache__
$(RM) .coverage
$(RM) -r .pytest_cache
fclean: clean
$(PRINT) "\n------->\tREMOVE BINARIES\n"
$(RM) $(NAME)
tests_run: fclean
$(PRINT) "\nLET'S TEST:\n"
@python -m pytest -v $(TESTS_SRC) --cov=$(SOURCES) --cov-report=html
re: fclean all
.PHONY: all clean fclean tests_run re