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