diff options
author | Egor Tensin <Egor.Tensin@gmail.com> | 2020-03-11 17:13:17 +0300 |
---|---|---|
committer | Egor Tensin <Egor.Tensin@gmail.com> | 2020-03-11 17:13:17 +0300 |
commit | 68d795158f31f349599dfb59e435ca4daf7370bc (patch) | |
tree | 7deacbc36476656dbcad8ab766bdcf2ad8f37d0c /.travis/lib | |
parent | Travis: prettier output (diff) | |
download | vk-scripts-68d795158f31f349599dfb59e435ca4daf7370bc.tar.gz vk-scripts-68d795158f31f349599dfb59e435ca4daf7370bc.zip |
Travis: restructure .travis/
Diffstat (limited to '')
-rwxr-xr-x | .travis/lib/test.sh (renamed from .travis/test.sh) | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/.travis/test.sh b/.travis/lib/test.sh index 83c4efa..c91ce48 100755 --- a/.travis/test.sh +++ b/.travis/lib/test.sh @@ -7,6 +7,10 @@ set -o errexit -o nounset -o pipefail +script_dir="$( dirname -- "${BASH_SOURCE[0]}" )" +script_dir="$( cd -- "$script_dir" && pwd )" +readonly script_dir + run_test() { local arg echo @@ -17,7 +21,7 @@ run_test() { echo echo ====================================================================== - python3 -m "$@" + PYTHONPATH="$script_dir/../.." python3 -m "$@" } run_test "$@" |