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.
This commit is contained in:
Curtis Gedak 2018-11-10 12:38:22 -07:00
parent 60b58d9658
commit 2b98561981

View file

@ -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