forked from alphagov/govuk-app-deployment
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathRakefile
More file actions
22 lines (16 loc) · 747 Bytes
/
Rakefile
File metadata and controls
22 lines (16 loc) · 747 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
require "rspec/core/rake_task"
RSpec::Core::RakeTask.new(:spec)
task :default => :spec
desc "Send a test deploy message to #bot-testing to see what it looks like"
task :test_slack do
require_relative "./lib/slack_announcer"
ENV["TAG"] = "test_tag_123"
repo_name = "test_repo"
application = "the_application"
announcer = SlackAnnouncer.new("staging", ENV.fetch("SLACK_WEBHOOK_URL"))
announcer.announce_start(repo_name, application, "#bot-testing")
announcer.announce_done(repo_name, application, "#bot-testing")
announcer = SlackAnnouncer.new("production", ENV.fetch("SLACK_WEBHOOK_URL"))
announcer.announce_start(repo_name, application, "#bot-testing")
announcer.announce_done(repo_name, application, "#bot-testing")
end