mirror of
https://github.com/powerline/powerline.git
synced 2025-12-02 19:33:32 +01:00
Changes: - Add main configuration, colors.json, almost full themes and colorschemes checks - Make powerline.lint.check return whether it had problems - Make powerline-lint fail if .check reported problems - Make tests run powerline-lint - Add the script to the list of the installed scripts Fixes #278
21 lines
397 B
Bash
Executable File
21 lines
397 B
Bash
Executable File
#!/bin/sh
|
|
: ${PYTHON:=python}
|
|
FAILED=0
|
|
if ${PYTHON} -c 'import sys; sys.exit(1 * (sys.version_info >= (2, 7)))' ; then
|
|
# Python 2.6
|
|
export PYTHONPATH="${PYTHONPATH}:`realpath .`"
|
|
for file in tests/test_*.py ; do
|
|
if ! ${PYTHON} $file ; then
|
|
exit 1
|
|
fi
|
|
done
|
|
else
|
|
if ! ${PYTHON} setup.py test ; then
|
|
FAILED=1
|
|
fi
|
|
fi
|
|
if ! ${PYTHON} scripts/powerline-lint ; then
|
|
FAILED=1
|
|
fi
|
|
exit $FAILED
|