Travis CI: Lint for syntax errors
This commit is contained in:
parent
23c5120790
commit
5bc0f6f115
1 changed files with 12 additions and 2 deletions
14
.travis.yml
14
.travis.yml
|
@ -2,8 +2,6 @@
|
||||||
language: python
|
language: python
|
||||||
python: 2.7
|
python: 2.7
|
||||||
|
|
||||||
sudo: required
|
|
||||||
|
|
||||||
services:
|
services:
|
||||||
- docker
|
- docker
|
||||||
|
|
||||||
|
@ -28,6 +26,7 @@ cache:
|
||||||
- $HOME/docker
|
- $HOME/docker
|
||||||
|
|
||||||
stages:
|
stages:
|
||||||
|
- lint
|
||||||
- build
|
- build
|
||||||
- test
|
- test
|
||||||
- clean
|
- clean
|
||||||
|
@ -35,7 +34,18 @@ stages:
|
||||||
# We should label the steps if Travis ever supports it:
|
# We should label the steps if Travis ever supports it:
|
||||||
# https://github.com/travis-ci/travis-ci/issues/5898
|
# https://github.com/travis-ci/travis-ci/issues/5898
|
||||||
jobs:
|
jobs:
|
||||||
|
allow_failures:
|
||||||
|
- python: 3.8
|
||||||
include:
|
include:
|
||||||
|
- stage: lint
|
||||||
|
script:
|
||||||
|
- pip install flake8
|
||||||
|
- flake8 . --count --select=E9,F63,F7,F82 --show-source --statistics
|
||||||
|
- stage: lint
|
||||||
|
python: 3.8
|
||||||
|
script:
|
||||||
|
- pip install flake8
|
||||||
|
- flake8 . --count --select=E9,F63,F7,F82 --show-source --statistics
|
||||||
- stage: build
|
- stage: build
|
||||||
name: Build
|
name: Build
|
||||||
script: scripts/ci build
|
script: scripts/ci build
|
||||||
|
|
Reference in a new issue