mirror of
https://github.com/domainaware/parsedmarc.git
synced 2026-02-17 07:03:58 +00:00
29 lines
532 B
Bash
Executable File
29 lines
532 B
Bash
Executable File
#!/usr/bin/env bash
|
|
|
|
set -e
|
|
|
|
if [ ! -d "venv" ]; then
|
|
virtualenv venv || exit
|
|
fi
|
|
|
|
. venv/bin/activate
|
|
pip install .[build]
|
|
ruff format .
|
|
ruff check .
|
|
cd docs
|
|
make clean
|
|
make html
|
|
touch build/html/.nojekyll
|
|
if [ -d "./../parsedmarc-docs" ]; then
|
|
cp -rf build/html/* ../../parsedmarc-docs/
|
|
fi
|
|
cd ..
|
|
cd parsedmarc/resources/maps
|
|
python3 sortlists.py
|
|
echo "Checking for invalid UTF-8 bytes in base_reverse_dns_map.csv"
|
|
python3 find_bad_utf8.py base_reverse_dns_map.csv
|
|
cd ../../..
|
|
python3 tests.py
|
|
rm -rf dist/ build/
|
|
hatch build
|