diff --git a/.travis.yml b/.travis.yml index 3bfcb3708..d082d7b89 100644 --- a/.travis.yml +++ b/.travis.yml @@ -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 @@ -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