forked from gooddata/gooddata-ruby
-
Notifications
You must be signed in to change notification settings - Fork 0
/
ci.rake
47 lines (41 loc) · 1.16 KB
/
ci.rake
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
41
42
43
44
45
46
47
namespace :docker do
desc 'Build Docker image'
task :build do
system('docker-compose build --no-cache')
end
desc 'Bundles gems using cache'
namespace :bundle do
task :ruby do
system('docker-compose run --rm gooddata-ruby bundle')
end
task :jruby do
system('docker-compose run --rm gooddata-jruby bundle')
end
end
end
namespace :test do
task :test do
system('docker-compose run gooddata-ruby bundle exec echo ahoj')
end
end
namespace :pronto do
desc 'Performs automated code review on the PR'
task :ci do
system('docker-compose run gooddata-ruby bundle exec pronto run -f github_pr -c origin/master --exit-code') ||
fail('Pronto execution failed!')
end
end
namespace :test do
namespace :unit do
task :docker do
system('docker-compose run -u $(id -u):$(id -g) -e GNUPGHOME=/tmp gooddata-ruby bundle exec rake test:unit') ||
fail('Test execution failed!')
end
end
namespace :integration do
task :docker do
system('docker-compose run -u $(id -u):$(id -g) -e GNUPGHOME=/tmp gooddata-jruby bundle exec rake test:integration') ||
fail('Test execution failed!')
end
end
end