Files
parsedmarc/build.sh
2022-12-23 20:20:53 -05:00

20 lines
311 B
Bash
Executable File

#!/usr/bin/env bash
set -e
if [ ! -d "venv" ]; then
virtualenv venv || exit
fi
. venv/bin/activate
pip install -U -r requirements.txt
cd docs
make clean
make html
touch build/html/.nojekyll
cp -rf build/html/* ../../parsedmarc-docs/
cd ..
flake8 parsedmarc
python3 tests.py
rm -rf dist/ build/
hatch build