-
Notifications
You must be signed in to change notification settings - Fork 3
/
Makefile
27 lines (22 loc) · 1003 Bytes
/
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
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:
@pip install -r requirements/requirements_tests.txt
@pytest -v --cov=ansys.fluent --cov-report html:cov_html --cov-config=.coveragerc
build-doc:
@sudo rm -rf /home/ansys/.local/share/ansys_fluent_core/examples/*
@pip install -r requirements/requirements_doc.txt
@xvfb-run make -C doc html
@touch doc/_build/html/.nojekyll
@echo "$(DOCS_CNAME)" >> doc/_build/html/CNAME