Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add linters to Travis #191

Closed
wants to merge 6 commits into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 14 additions & 3 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,13 @@ services:
- docker
language: python

addons:
apt:
sources:
- debian-sid # Grab shellcheck from the Debian repo (o_O)
packages:
- shellcheck

env:
- IGNORE_DOCKER_VERSION=true PYTHONUNBUFFERED=true

Expand All @@ -13,12 +20,16 @@ before_install:
- sudo apt-get -y install docker-ce
- pip install pip --upgrade
- pip install git+https://github.com/timothyb89/dbuild.git
- pip install google-cloud-storage
- docker --version
- docker-compose --version
- pip install flake8 flake8-blind-except flake8-builtins flake8-pep3101 flake8-coding pylint google-cloud-storage

jobs:
include:
- stage: lint-shellcheck
script: bash -c 'shopt -s globstar; shellcheck **/*.sh'
- stage: linting-flake8
script: flake8
- stage: linting-pylint
script: pylint
- stage: metrics-pipeline
script: python ci.py metrics
- stage: logs-pipeline
Expand Down