-
Notifications
You must be signed in to change notification settings - Fork 75
Expand file tree
/
Copy pathMakefile
More file actions
138 lines (112 loc) · 5.47 KB
/
Copy pathMakefile
File metadata and controls
138 lines (112 loc) · 5.47 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
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
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
style:
@echo "Running code style"
@pre-commit run --all-files --show-diff-on-failure
install:
@pip install -r requirements/requirements_build.txt
@git clean -fd
@flit build
@pip install -q --force-reinstall dist/*.whl
@pip install packaging
@python src/ansys/fluent/core/report.py
install-test:
@pip install -r requirements/requirements_build.txt
@pip install ansys-fluent-core[reader,search,tests]
@python -m pip install -q --force-reinstall dist/*.whl > /dev/null
@bash .ci/generate_certs.sh
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:
@python .ci/pull_fluent_image.py
docker-clean-all-except-supported-images:
@python .ci/docker_data_cleaner.py
test-import:
@python -c "import ansys.fluent.core as pyfluent"
PYTESTEXTRA = --cache-clear --cov=ansys.fluent --cov-report=xml:cov_xml.xml --cov-report=html -n auto
PYTESTRERUN = --last-failed --last-failed-no-failures none -n auto
unittest: unittest-dev-242
unittest-dev-242:
@echo "Running unittests"
@sudo rm -rf /home/ansys/Downloads/ansys_fluent_core_examples/*
@python -m pytest --fluent-version=24.2 $(PYTESTEXTRA) || python -m pytest --fluent-version=24.2 $(PYTESTRERUN)
unittest-dev-251:
@echo "Running unittests"
@sudo rm -rf /home/ansys/Downloads/ansys_fluent_core_examples/*
@python -m pytest --fluent-version=25.1 $(PYTESTEXTRA) || python -m pytest --fluent-version=25.1 $(PYTESTRERUN)
unittest-dev-252:
@echo "Running unittests"
@sudo rm -rf /home/ansys/Documents/ansys_fluent_core_examples/*
@python -m pytest --fluent-version=25.2 $(PYTESTEXTRA) || python -m pytest --fluent-version=25.2 $(PYTESTRERUN)
unittest-dev-261:
@echo "Running unittests"
@sudo rm -rf /home/ansys/Documents/ansys_fluent_core_examples/*
@python -m pytest --fluent-version=26.1 $(PYTESTEXTRA) || python -m pytest --fluent-version=26.1 $(PYTESTRERUN)
unittest-dev-271:
@echo "Running unittests"
@sudo rm -rf /home/ansys/Documents/ansys_fluent_core_examples/*
@python -m pytest --fluent-version=27.1 $(PYTESTEXTRA) || python -m pytest --fluent-version=27.1 $(PYTESTRERUN)
unittest-all-242:
@echo "Running all unittests"
@sudo rm -rf /home/ansys/Downloads/ansys_fluent_core_examples/*
@python -m pytest --nightly --fluent-version=24.2 $(PYTESTEXTRA) || python -m pytest --nightly --fluent-version=24.2 $(PYTESTRERUN)
unittest-all-251:
@echo "Running all unittests"
@sudo rm -rf /home/ansys/Downloads/ansys_fluent_core_examples/*
@python -m pytest --nightly --fluent-version=25.1 $(PYTESTEXTRA) || python -m pytest --nightly --fluent-version=25.1 $(PYTESTRERUN)
unittest-solvermode-251:
@echo "Running all unittests"
@sudo rm -rf /home/ansys/Downloads/ansys_fluent_core_examples/*
@python -m pytest --fluent-version=25.1 --solvermode $(PYTESTEXTRA) || python -m pytest --fluent-version=25.1 --solvermode $(PYTESTRERUN)
unittest-all-252:
@echo "Running all unittests"
@sudo rm -rf /home/ansys/Documents/ansys_fluent_core_examples/*
@python -m pytest --nightly --fluent-version=25.2 $(PYTESTEXTRA) || python -m pytest --nightly --fluent-version=25.2 $(PYTESTRERUN)
unittest-solvermode-252:
@echo "Running all unittests"
@sudo rm -rf /home/ansys/Documents/ansys_fluent_core_examples/*
@python -m pytest --fluent-version=25.2 --solvermode $(PYTESTEXTRA) || python -m pytest --fluent-version=25.2 --solvermode $(PYTESTRERUN)
unittest-all-261:
@echo "Running all unittests"
@sudo rm -rf /home/ansys/Documents/ansys_fluent_core_examples/*
@python -m pytest --nightly --fluent-version=26.1 $(PYTESTEXTRA) || python -m pytest --nightly --fluent-version=26.1 $(PYTESTRERUN)
unittest-solvermode-261:
@echo "Running all unittests"
@sudo rm -rf /home/ansys/Documents/ansys_fluent_core_examples/*
@python -m pytest --fluent-version=26.1 --solvermode $(PYTESTEXTRA) || python -m pytest --fluent-version=26.1 --solvermode $(PYTESTRERUN)
unittest-all-271:
@echo "Running all unittests"
@sudo rm -rf /home/ansys/Documents/ansys_fluent_core_examples/*
@python -m pytest --nightly --fluent-version=27.1 $(PYTESTEXTRA) || python -m pytest --nightly --fluent-version=27.1 $(PYTESTRERUN)
unittest-solvermode-271:
@echo "Running all unittests"
@sudo rm -rf /home/ansys/Documents/ansys_fluent_core_examples/*
@python -m pytest --fluent-version=27.1 --solvermode $(PYTESTEXTRA) || python -m pytest --fluent-version=27.1 --solvermode $(PYTESTRERUN)
api-codegen:
@echo "Running API codegen"
@python -m venv env
@. env/bin/activate
@pip install -q -e .
@bash .ci/generate_certs.sh
@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/Downloads/ansys_fluent_core_examples/*
@xvfb-run make -C doc html
build-all-docs:
@python doc/api_rstgen.py
@python doc/datamodel_rstgen.py
@python doc/tui_rstgen.py
@python doc/settings_rstgen.py
@sudo rm -rf /home/ansys/Downloads/ansys_fluent_core_examples/*
@xvfb-run make -C doc html
@python doc/modify_html.py
write-and-run-fluent-tests:
@pip install -r requirements/requirements_build.txt
@pip install ansys-fluent-core[reader]
@python -m pytest --write-fluent-journals
@python .ci/fluent_test_runner.py tests