Repo-specific environment variables in .travis.yml notification section

can use repo-defined environment variables (travis settings page for my repo) in my notification section of .travis.yml? Something like this:

notifications:
  slack:
    rooms:
      - myworkspace:${TRAVIS_SLACK_TOKEN}#myroom
    on_success: ${TRAVIS_SLACK_ON_SUCCESS}
    on_failure: always
  email:
    recipients:
.
.
    on_success: ${TRAVIS_EMAIL_ON_SUCCESS}
    on_failure: always

You cannot. Notifications have to be configured before the builds and jobs run, and environment variables cannot be known until they do.

Thanks for the quick repy. Not the answer I wanted, but at least I can quit trying to make it work. :slight_smile: