-
Notifications
You must be signed in to change notification settings - Fork 6
Expand file tree
/
Copy pathMakefile
More file actions
46 lines (38 loc) · 1.52 KB
/
Makefile
File metadata and controls
46 lines (38 loc) · 1.52 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
style:
@python -m pip install pre-commit
@pre-commit run --all-files --show-diff-on-failure
install:
@pip install -r requirements/requirements_build.txt
@python -m build
@pip install dist/*.whl --force-reinstall
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/visualization/__init__.py"
@bash -c "git --no-pager log -n 1 --format='%h' | xargs -I hash sed -i 's/<id>/hash/g' src/ansys/fluent/visualization/__init__.py"
docker-pull:
@pip install docker
@bash .ci/pull_fluent_image.sh
unittest-windows:
@pip install -r requirements/requirements_tests.txt
@.ci\generate_certs.bat
@pytest -v --cov=ansys.fluent --cov-report=xml:cov_xml.xml --cov-report=html
unittest-linux:
@pip install -r requirements/requirements_tests.txt
@bash .ci/generate_certs.sh
@pytest -v --cov=ansys.fluent --cov-report=xml:cov_xml.xml --cov-report=html
build-doc-windows:
@pip install -r requirements/requirements_doc.txt
@python doc/api_rstgen.py
@.ci\generate_certs.bat
@make -C doc html
@touch doc\_build\html\.nojekyll
@echo "$(DOCS_CNAME)" >> doc\_build\html\CNAME
build-doc-linux:
@sudo rm -rf /home/ansys/.local/share/ansys_fluent_core/examples/*
@pip install -r requirements/requirements_doc.txt
@python doc/api_rstgen.py
@bash .ci/generate_certs.sh
@xvfb-run make -C doc html
@touch doc/_build/html/.nojekyll
@echo "$(DOCS_CNAME)" >> doc/_build/html/CNAME
docker-clean-images:
@docker system prune --volumes -a -f