forked from gizmomogwai/cxxproject_cxx
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Rakefile.rb
61 lines (56 loc) · 1.18 KB
/
Rakefile.rb
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
48
49
50
51
52
53
54
55
56
57
58
59
60
61
require "bundler/gem_tasks"
require './rake_helper/spec.rb'
task :package => [:build, :preinstall]
projects = ['frazzle',
'cxxproject',
'cxxproject_gcctoolchain']
def gems
['frazzle', 'cxxproject', 'cxx', 'cxxproject_gcctoolchain']
end
desc 'prepare acceptance tests'
task :prepare_accept do
gems.each do |gem|
cd "../#{gem}" do
sh 'rm -rf pkg'
sh 'rake package'
end
end
gems.each do |gem|
sh "gem install ../#{gem}/pkg/*.gem"
end
end
task :preinstall do
sh 'gem install highline'
end
desc 'run acceptance tests'
RSpec::Core::RakeTask.new(:accept) do |t|
t.pattern = 'accept/**/*_spec.rb'
if ENV['BUILD_SERVER']
t.rspec_opts = '-r ./junit.rb -f JUnit -o build/test_details.xml'
end
end
#
#desc 'cleanup all built gems'
#task :clean do
# projects.each do |p|
# cd "../#{p}" do
# sh 'rm -rf pkg'
# end
# end
#end
#
#desc 'install prerequisites for build'
#task :wipe_gems do
# sh "rvm --force gemset empty"
#end
#
#desc 'install all built gems'
#task :build_and_install_gems do
# projects.each do |p|
# cd "../#{p}" do
# sh 'rm -rf pkg'
# sh 'rake package'
# sh 'rake install'
# end
# end
#end