浏览代码

Merge 1466640fb59007a1bc0940502c6e5000b01758be into cd819ae74bfc204c86f1b3d1588859ec8f7d8240

cclauss 6 年前
父节点
当前提交
36b4edbf83
没有帐户链接到提交者的电子邮件
共有 1 个文件被更改,包括 6 次插入1 次删除
  1. 6
    1
      .travis.yml

+ 6
- 1
.travis.yml 查看文件

@@ -19,7 +19,12 @@ install:
19 19
   - export PATH=~/drivers:$PATH
20 20
   - ./manage.sh npm_packages
21 21
   - ./manage.sh update_dev_packages
22
-  - pip install codecov
22
+  - pip install codecov flake8
23
+before_script:
24
+  # stop the build if there are Python syntax errors or undefined names
25
+  - flake8 . --count --select=E901,E999,F821,F822,F823 --show-source --statistics
26
+  # exit-zero treats all errors as warnings.  The GitHub editor is 127 chars wide
27
+  - flake8 . --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics
23 28
 script:
24 29
   - ./manage.sh styles
25 30
   - ./manage.sh grunt_build