代码拉取完成,页面将自动刷新
language: python
python:
- "2.7"
- "3.5"
- "3.6"
- "nightly"
- "pypy"
matrix:
allow_failures:
- python: "nightly"
- python: "pypy"
branches:
only:
- master
install:
# Travis has pypy 2.5.0, which is way too old, so we upgrade it on the fly:
- |
if [ "$TRAVIS_PYTHON_VERSION" = "pypy" ]; then
export PYENV_ROOT="$HOME/.pyenv"
if [ -f "$PYENV_ROOT/bin/pyenv" ]; then
pushd "$PYENV_ROOT" && git pull && popd
else
rm -rf "$PYENV_ROOT" && git clone --depth 1 https://github.com/yyuu/pyenv.git "$PYENV_ROOT"
fi
export PYPY_VERSION="5.6.0"
"$PYENV_ROOT/bin/pyenv" install --skip-existing "pypy-$PYPY_VERSION"
virtualenv --python="$PYENV_ROOT/versions/pypy-$PYPY_VERSION/bin/python" "$HOME/virtualenvs/pypy-$PYPY_VERSION"
source "$HOME/virtualenvs/pypy-$PYPY_VERSION/bin/activate"
fi
- travis_retry pip install pylint
- travis_retry pip install -r app/requirements.txt
- travis_retry pip install -r tests/requirements.txt
- travis_retry pip install pytest-cov coverage coveralls codacy-coverage
cache:
directories:
- $HOME/.cache/pip
- $HOME/.pyenv
script:
py.test --cov=app
after_success:
- pylint --disable=fixme app
- coveralls
- coverage xml && python-codacy-coverage -r coverage.xml
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。