* Fix pycodestyle errors W503 is condracting PEP-8 and was added to the default ignore list by pycodestyle developers * Use setup.cfg for pycodestyle ignore parameters Addresses #651 (kind of). Appending ignores to the default list prevents us from getting warnings that we don't care about. * W503 is not in the default ignore list in 2.4.0
26 lines
801 B
Bash
Executable File
26 lines
801 B
Bash
Executable File
#!/bin/bash -xe
|
|
|
|
python3 --version
|
|
py.test --version
|
|
python3 -mpycodestyle --version
|
|
|
|
# Target directory for all build files
|
|
BUILD=${1:-ci-build}
|
|
rm -rf ${BUILD}/
|
|
mkdir -p $BUILD
|
|
|
|
python3 -mpycodestyle i3pystatus tests
|
|
|
|
# Check that the setup.py script works
|
|
rm -rf ${BUILD}/test-install ${BUILD}/test-install-bin
|
|
mkdir ${BUILD}/test-install ${BUILD}/test-install-bin
|
|
PYTHONPATH=${BUILD}/test-install python3 setup.py --quiet install --install-lib ${BUILD}/test-install --install-scripts ${BUILD}/test-install-bin
|
|
|
|
test -f ${BUILD}/test-install-bin/i3pystatus
|
|
test -f ${BUILD}/test-install-bin/i3pystatus-setting-util
|
|
|
|
PYTHONPATH=${BUILD}/test-install py.test -q --junitxml ${BUILD}/testlog.xml tests
|
|
|
|
# Check that the docs build w/o warnings (-W flag)
|
|
sphinx-build -Nq -b html -W docs ${BUILD}/docs/
|