Browse Source

Merge 1466640fb59007a1bc0940502c6e5000b01758be into cd819ae74bfc204c86f1b3d1588859ec8f7d8240

cclauss 6 years ago
parent
commit
36b4edbf83
No account linked to committer's email
1 changed files with 6 additions and 1 deletions
  1. 6
    1
      .travis.yml

+ 6
- 1
.travis.yml View File

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