-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
51 lines (45 loc) · 1.3 KB
/
Makefile
File metadata and controls
51 lines (45 loc) · 1.3 KB
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
.PHONY: install test clean help
# Default target
help:
@echo "doris-cmd Makefile"
@echo ""
@echo "Available targets:"
@echo " install - Install doris-cmd and its dependencies"
@echo " test - Run test script"
@echo " clean - Clean temporary files and build files"
@echo " uninstall - Uninstall doris-cmd"
@echo ""
@echo "Examples:"
@echo " make install"
@echo " make test"
# Install doris-cmd and its dependencies
install:
@echo "Installing doris-cmd and its dependencies..."
pip install -r requirements.txt
pip install -e .
@echo "Installation completed!"
# Run tests
test:
@echo "Running doris-cmd test script..."
@echo "Note: Please ensure doris-cmd is installed and Apache Doris service is running"
@echo "To modify test connection info, please edit the test_doris_cmd.py file"
python test_doris_cmd.py
# Run shell test script
test-shell:
@echo "Running Shell test script..."
./install_and_test.sh
# Clean temporary files and build files
clean:
@echo "Cleaning temporary files and build files..."
rm -rf build/
rm -rf dist/
rm -rf *.egg-info/
rm -rf __pycache__/
rm -rf doris_cmd/__pycache__/
rm -f test_query.sql
@echo "Cleaning completed!"
# Uninstall doris-cmd
uninstall:
@echo "Uninstalling doris-cmd..."
pip uninstall -y doris-cmd
@echo "Uninstallation completed!"