clone:
  hg:
    image: plugins/hg

pipeline:
  linter:
    image: python
    commands:
      - apt-get update -q && DEBIAN_FRONTEND=noninteractive apt-get -q -y install flake8
      - flake8
  mattermost:
    image: plugins/slack
    channel: dev
    username: drone
    secrets: [ slack_webhook ]
    when:
      status: [ failure, success ]

