pipeline:
  build:
    image: alpine
    commands:
      - apk --no-cache add python py-pip gcc python-dev musl-dev libffi-dev openssl-dev
      - pip install -r requirements.txt
      - pip install -r tests/requirements.txt
      - pip install .
      - py.test -v

  slack:
    image: plugins/slack
    channel: tools
    secrets: [ slack_webhook ]

pipeline:
  build:
    image: alpine
    commands:
      - apk --no-cache add python py-pip gcc python-dev musl-dev libffi-dev openssl-dev
      - pip install -r requirements.txt
      - pip install -r tests/requirements.txt
      - pip install .
      - py.test -v

  slack:
    image: plugins/slack
    channel: tools
    secrets: [ slack_webhook ]
    when:
      status: [ success, failure ]
      event: push

Configure CI to run slack notifications only on push, but regardless of success/failure
chore: Configure CI to run slack notifications only on push, but regardless of success/failure

Signed-off-by: Kai Blin <ad3597797f6179d503c382b2627cc19939309418@biosustain.dtu.dk>
