mirror of
https://github.com/keymanapp/keyman.git
synced 2026-08-09 10:25:32 +00:00
16 lines
411 B
Bash
Executable file
16 lines
411 B
Bash
Executable file
#!/bin/bash
|
|
PYTHONPATH=.:$PYTHONPATH
|
|
|
|
XDG_CONFIG_HOME=$(mktemp --directory)
|
|
export XDG_CONFIG_HOME
|
|
|
|
if [ -n "$TEAMCITY_VERSION" ]; then
|
|
if ! pip3 list --format=columns | grep -q teamcity-messages; then
|
|
pip3 install teamcity-messages
|
|
fi
|
|
python3 -m teamcity.unittestpy discover -s tests -p test_*.py
|
|
else
|
|
python3 -m unittest discover -v -s tests -p test_*.py
|
|
fi
|
|
|
|
rm -rf "$XDG_CONFIG_HOME"
|