Notifications

Email

To turn off email notifications:

notifications:
  email: false

Slack

notifications:
  slack:
    rooms:
      # secure version
      - secure: #...
      # non secure version
      - my-slack:THIS_IS_SOME_KEY#channel
    on_success: always
    on_failure: always

(Check when dash or no dash e.g. before slack)

To add the encrypt room:

travis encrypt "{Slack workspace name}:{Travis token in Slack}" --add notifications.slack.room -r Al-un/learn-zone-rails

The --add notifications.slack.room automatically appends the encrypted value(s) in your .travis.yml but it breaks the file formatting T_T. Better remove it :)

Depending on your travis configuration, you might need to add the --com argument.