我的travis构建似乎正在创建大量的空日志输出。这仅在我在travis上运行时发生,而在本地计算机上手动运行任何测试时则不会发生。
我的Travis文件如下所示: https://github.com/dickreuter/neuron_poker/blob/master/.travis.yml
language: python
python:
- "3.6"
os:
- linux
install:
- if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then MINICONDA_OS=Linux; else MINICONDA_OS=MacOSX; fi
- wget https://repo.anaconda.com/miniconda/Miniconda3-latest-$MINICONDA_OS-x86_64.sh -O miniconda.sh
- bash miniconda.sh -b -p "$HOME"/miniconda
- source "$HOME"/miniconda/etc/profile.d/conda.sh
- conda config --set always_yes yes --set changeps1 no --set auto_update_conda false
- pip install requirements.txt
- export LANG=en_US.UTF-8
- export COVERAGE_DIR=":$HOME/htmlcov"
- printenv | sort
install:
- pip install -r requirements.txt
# command to run tests
script: pytest --log-cli-level=warning
after_success:
- codecov
输出可以在这里看到: https://travis-ci.com/dickreuter/neuron_poker/builds/134819176 它以“作业超出最大日志长度,并且已终止”结束。
任何建议都值得赞赏,我如何避免这种似乎无处可得的大日志输出。