forked from OperationCode/operationcode_bot
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathrakefile
More file actions
27 lines (20 loc) · 684 Bytes
/
rakefile
File metadata and controls
27 lines (20 loc) · 684 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
require 'rake/testtask'
Rake::TestTask.new do |t|
require "simplecov"
SimpleCov.start
ENV['SLACK_TOKEN'] = 'test_token'
ENV['SLACK_CLIENT_ID'] = 'test_client_id'
ENV['SLACK_CLIENT_SECRET'] = 'test_client_id'
ENV['AIRTABLE_API_KEY'] = 'FAKEAIRTABLEKEY'
ENV['AIRTABLE_MENTORSHIP_SQUADS_KEY'] = 'FAKEMENTORSHIPSQUADSKEY'
ENV['INVITE_USER'] = 'true'
ENV['SLACK_CHANNEL_1ST_SQUAD'] = '1STSQUADID'
base_dir = File.expand_path(File.dirname(__FILE__))
lib_dir = File.join(base_dir, "lib")
test_dir = File.join(base_dir, "test")
t.libs << base_dir
t.libs << lib_dir
t.test_files = FileList['test/**/*_test.rb']
t.verbose = false
end
task default: :test