From 2b985619810a2bde4bf5417eb22fe9aa5fb50582 Mon Sep 17 00:00:00 2001 From: Curtis Gedak Date: Sat, 10 Nov 2018 12:38:22 -0700 Subject: [PATCH] Add -B option to python3 -m pytest -vs command Python only shows the deprecation warnings on initial run [1]. [1] https://bugs.python.org/issue30091 To work around this add the "-B" option to python invocation. --- .travis.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.travis.yml b/.travis.yml index 18c5c68..7632745 100644 --- a/.travis.yml +++ b/.travis.yml @@ -8,7 +8,7 @@ install: - if [ "$TRAVIS_OS_NAME" = "osx" ]; then bash package/prepare_osx.sh; fi - if [ "$TRAVIS_OS_NAME" = "linux" ]; then bash package/prepare_linux.sh; fi script: -- if [ "$TRAVIS_OS_NAME" = "osx" ]; then python3 -m pytest -vs; fi +- if [ "$TRAVIS_OS_NAME" = "osx" ]; then python3 -B -m pytest -vs; fi - if [ "$TRAVIS_OS_NAME" = "linux" ]; then xvfb-run -s '-screen 0 640x480x24 +extension GLX' pytest -vs; fi before_deploy: - export FILENAME=manuskript-$TRAVIS_BRANCH-$TRAVIS_OS_NAME.zip