mirror of
https://github.com/keymanapp/keyman.git
synced 2026-08-07 01:15:33 +00:00
chore(linux): Allow to run tests when package building with sbuild
This commit is contained in:
parent
fd562019dd
commit
ccba767e2e
1 changed files with 5 additions and 0 deletions
|
|
@ -1,6 +1,9 @@
|
|||
#!/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
|
||||
|
|
@ -9,3 +12,5 @@ if [ -n "$TEAMCITY_VERSION" ]; then
|
|||
else
|
||||
python3 -m unittest discover -v -s tests -p test_*.py
|
||||
fi
|
||||
|
||||
rm -rf "$XDG_CONFIG_HOME"
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue