Travis CI: Lint for syntax errors

This commit is contained in:
Christian Clauss 2019-11-16 13:08:25 +01:00 committed by GitHub
parent 23c5120790
commit 5bc0f6f115
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -2,8 +2,6 @@
language: python
python: 2.7
sudo: required
services:
- docker
@ -28,6 +26,7 @@ cache:
- $HOME/docker
stages:
- lint
- build
- test
- clean
@ -35,7 +34,18 @@ stages:
# We should label the steps if Travis ever supports it:
# https://github.com/travis-ci/travis-ci/issues/5898
jobs:
allow_failures:
- python: 3.8
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
name: Build
script: scripts/ci build