forked from ansys/pyfluent
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
91 lines (74 loc) · 3.38 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
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
style:
@echo "Running code style"
@pre-commit run --all-files --show-diff-on-failure
install:
@pip install -r requirements/requirements_build.txt
@python -m build
@pip install -q --force-reinstall dist/*.whl
version-info:
@bash -c "date -u +'Build date: %B %d, %Y %H:%M UTC ShaID: <id>' | xargs -I date sed -i 's/_VERSION_INFO = .*/_VERSION_INFO = \"date\"/g' src/ansys/fluent/core/__init__.py"
@bash -c "git --no-pager log -n 1 --format='%h' | xargs -I hash sed -i 's/<id>/hash/g' src/ansys/fluent/core/__init__.py"
docker-pull:
@bash .ci/pull_fluent_image.sh
test-import:
@python -c "import ansys.fluent.core as pyfluent"
unittest: unittest-dev-231
unittest-dev-222:
@echo "Running unittests"
@pip install -r requirements/requirements_tests.txt
@python -m pytest -v -m "dev and fluent_222" --cov=ansys.fluent --cov-report=xml:cov_xml.xml --cov-report=html
unittest-dev-231:
@echo "Running unittests"
@pip install -r requirements/requirements_tests.txt
@python -m pytest -v -m "dev and fluent_231" --cov=ansys.fluent --cov-report=xml:cov_xml.xml --cov-report=html
unittest-dev-241:
@echo "Running unittests"
@pip install -r requirements/requirements_tests.txt
@python -m pytest -v -m "dev and fluent_241" --cov=ansys.fluent --cov-report=xml:cov_xml.xml --cov-report=html
unittest-dev-232:
@echo "Running unittests"
@pip install -r requirements/requirements_tests.txt
@python -m pytest -v -m "dev and fluent_232" --cov=ansys.fluent --cov-report=xml:cov_xml.xml --cov-report=html
unittest-all-222:
@sudo rm -rf /home/ansys/.local/share/ansys_fluent_core/examples/*
@echo "Running all unittests"
@pip install -r requirements/requirements_tests.txt
@python -m pytest -v -m "fluent_222" --cov=ansys.fluent --cov-report=xml:cov_xml.xml --cov-report=html --durations=0
unittest-all-231:
@sudo rm -rf /home/ansys/.local/share/ansys_fluent_core/examples/*
@echo "Running all unittests"
@pip install -r requirements/requirements_tests.txt
@python -m pytest -v -m "fluent_231" --cov=ansys.fluent --cov-report=xml:cov_xml.xml --cov-report=html --durations=0
unittest-all-241:
@sudo rm -rf /home/ansys/.local/share/ansys_fluent_core/examples/*
@echo "Running all unittests"
@pip install -r requirements/requirements_tests.txt
@python -m pytest -v -m "fluent_241" --cov=ansys.fluent --cov-report=xml:cov_xml.xml --cov-report=html --durations=0
unittest-all-232:
@sudo rm -rf /home/ansys/.local/share/ansys_fluent_core/examples/*
@echo "Running all unittests"
@pip install -r requirements/requirements_tests.txt
@python -m pytest -v -m "fluent_232" --cov=ansys.fluent --cov-report=xml:cov_xml.xml --cov-report=html --durations=0
api-codegen:
@echo "Running API codegen"
@python -m venv env
@. env/bin/activate
@pip install -q -e .
@python codegen/allapigen.py
@rm -rf env
build-doc-source:
@sudo rm -rf doc/source/api/meshing/datamodel
@sudo rm -rf doc/source/api/meshing/tui
@sudo rm -rf doc/source/api/solver/datamodel
@sudo rm -rf doc/source/api/solver/tui
@sudo rm -rf doc/source/api/solver/_autosummary/settings
@sudo rm -rf /home/ansys/.local/share/ansys_fluent_core/examples/*
@pip install -r requirements/requirements_doc.txt
@xvfb-run make -C doc html
build-all-docs:
@python doc/settings_rstgen.py
@sudo rm -rf /home/ansys/.local/share/ansys_fluent_core/examples/*
@pip install -r requirements/requirements_doc.txt
@xvfb-run make -C doc html
compare-flobject:
@python .ci/compare_flobject.py