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