forked from aws/aws-sdk-ruby
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Rakefile
40 lines (29 loc) · 799 Bytes
/
Rakefile
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
28
29
30
31
32
33
34
35
36
37
38
39
40
$REPO_ROOT = File.dirname(__FILE__)
$VERSION = ENV['VERSION'] || File.read(File.join($REPO_ROOT, 'VERSION')).strip
$GEM_NAMES = [
'aws-sdk-core',
'aws-sdk-resources',
'aws-sdk',
]
$GEM_NAMES.each do |gem_name|
$LOAD_PATH.unshift(File.join($REPO_ROOT, gem_name, 'lib'))
end
require 'aws-sdk'
task 'test:coverage:clear' do
sh("rm -rf #{File.join($REPO_ROOT, 'coverage')}")
end
desc 'Runs unit tests'
task 'test:unit' => 'test:coverage:clear'
desc 'Runs integration tests'
task 'test:integration' => 'test:coverage:clear'
desc 'Runs unit and integration tests'
task 'test' => ['test:unit', 'test:integration']
task :default => :test
Dir.glob('**/*.rake').each do |task_file|
load task_file
end
begin
require 'coveralls/rake/task'
Coveralls::RakeTask.new
rescue LoadError
end