language: ruby
notifications:
  email: false
rvm:
  - 2.0.0
before_script:
  - psql -c 'create database supermarket_test;' -U postgres
  - cp .env.example .env
  - bundle exec rake db:schema:load
bundler_args: --without development
script: 'bundle exec rspec && bundle exec rake spec:javascripts'

language: ruby
notifications:
  email: false
  webhooks: https://getchef.slack.com/services/hooks/travis?token=ECftsW2P2itUaz1MhfiU6cS4
rvm:
  - 2.0.0
before_script:
  - psql -c 'create database supermarket_test;' -U postgres
  - cp .env.example .env
  - bundle exec rake db:schema:load
bundler_args: --without development
script: 'bundle exec rspec && bundle exec rake spec:javascripts'

Enable Travis CI Slack Notifications
Enable Travis CI Slack Notifications

This enables Travis CI to notify Slack the token is semi-secret
so there's no real need to encrypt it. As stated in the Slack docs:

"Your integration token is semi-secret. The worst someone could do
if they had it was post Travis payloads to your channel. They could
not read any data."
