obey style guide and make build.sh more readable

The script build.sh should be more readable now, and a little less
error-prone as it creates the parsedmarc-docs directory if it is missing
This commit is contained in:
Arrigo Marchiori
2019-08-03 11:15:21 +02:00
parent 623eeddc8e
commit 537651836b
3 changed files with 21 additions and 5 deletions

View File

@@ -1,4 +1,19 @@
#!/usr/bin/env bash
set -e
. venv/bin/activate
pip install -U -r requirements.txt && rstcheck --report warning README.rst && cd docs && make html && touch _build/html/.nojekyll && cp -rf _build/html/* ../../parsedmarc-docs/ && cd .. && flake8 parsedmarc && flake8 tests.py && rm -rf dist/ build/ && python3 setup.py sdist && python3 setup.py bdist_wheel
pip install -U -r requirements.txt
rstcheck --report warning README.rst
cd docs
make html
touch _build/html/.nojekyll
mkdir -p ../../parsedmarc-docs/
cp -rf _build/html/* ../../parsedmarc-docs/
cd ..
flake8 parsedmarc
flake8 tests.py
rm -rf dist/ build/
python3 setup.py sdist
python3 setup.py bdist_wheel