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