加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
.travis.yml 789 Bytes
一键复制 编辑 原始数据 按行查看 历史
cclauss 提交于 2019-04-18 11:00 . Fix $TEST_DIR
group: travis_latest
language: python
cache: pip
matrix:
allow_failures:
- python: 2.7
include:
- python: 2.7
env: TEST_DIR=./src/py2.x
- python: 3.7
env: TEST_DIR=./src/py3.x
dist: xenial # required for Python 3.7
install:
- pip install flake8
before_script:
# stop the build if there are Python syntax errors or undefined names
- flake8 ${TEST_DIR} --count --select=E9,F63,F72,F82 --show-source --statistics
# exit-zero treats all errors as warnings. The GitHub editor is 127 chars wide
- flake8 ${TEST_DIR} --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics
script:
- true # add other tests here
notifications:
on_success: change
on_failure: change # `always` will be the setting once code changes slow down
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化