ID: a7664d262d8565fd7347f39e49a3ea4ec9562240
47 lines
—
1021B —
View raw
| SHELL = /bin/bash
REPOSITORY = https://github.com/landscapeio/prospector.git
check_env_vars:
ifdef OUTPUT_PATH
OUTPUT_PATH := ${OUTPUT_PATH}/prospector
else
$(error OUTPUT_PATH is undefined)
endif
venv-3.7:
export PYENV_VERSION=3.7
python3 -m venv venv
repository:
git clone ${REPOSITORY} repository
v1.10.3: check_env_vars repository
export PYENV_VERSION=3.11
cd repository
git checkout tags/$@
poetry install
poetry run pip install -r docs/requirements.txt
poetry run pip install .[with_everything]
cd docs
poetry run make clean
poetry run make dirhtml
mkdir --parents "${OUTPUT_PATH}"
cp --recursive _build/dirhtml "${OUTPUT_PATH}/$@"
0.12.11: check_env_vars venv-3.7 repository
source venv/bin/activate
cd repository
git checkout tags/$@
pip install -r docs/requirements.txt
pip install .[with_everything] "pyroma == 2.3"
cd docs
make clean
make dirhtml
mkdir --parents "${OUTPUT_PATH}"
cp --recursive _build/dirhtml "${OUTPUT_PATH}/$@"
.ONESHELL:
.SUFFIXES:
.PHONY:
.DELETE_ON_ERROR:
|