Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
D
diaspora
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Milan
diaspora
Commits
560910b5
Commit
560910b5
authored
14 years ago
by
Sarah Mei
Browse files
Options
Downloads
Patches
Plain Diff
More cruisecontrol bits
parent
70795279
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
Gemfile.lock
+7
-14
7 additions, 14 deletions
Gemfile.lock
cruise_config.rb
+5
-0
5 additions, 0 deletions
cruise_config.rb
lib/cruise/build.rb
+28
-0
28 additions, 0 deletions
lib/cruise/build.rb
with
40 additions
and
14 deletions
Gemfile.lock
+
7
−
14
View file @
560910b5
...
@@ -97,7 +97,6 @@ GEM
...
@@ -97,7 +97,6 @@ GEM
activesupport (= 3.0.1)
activesupport (= 3.0.1)
activesupport (3.0.1)
activesupport (3.0.1)
addressable (2.2.2)
addressable (2.2.2)
archive-tar-minitar (0.5.2)
arel (1.0.1)
arel (1.0.1)
activesupport (~> 3.0.0)
activesupport (~> 3.0.0)
aws (2.3.22)
aws (2.3.22)
...
@@ -164,8 +163,7 @@ GEM
...
@@ -164,8 +163,7 @@ GEM
i18n (0.4.1)
i18n (0.4.1)
json (1.4.6)
json (1.4.6)
json_pure (1.4.6)
json_pure (1.4.6)
linecache19 (0.5.11)
linecache (0.43)
ruby_core_source (>= 0.1.4)
mail (2.2.7)
mail (2.2.7)
activesupport (>= 2.3.6)
activesupport (>= 2.3.6)
mime-types
mime-types
...
@@ -227,16 +225,11 @@ GEM
...
@@ -227,16 +225,11 @@ GEM
rspec-expectations (~> 2.0.1)
rspec-expectations (~> 2.0.1)
rspec-rails (2.0.1)
rspec-rails (2.0.1)
rspec (~> 2.0.0)
rspec (~> 2.0.0)
ruby-debug-base19 (0.11.24)
ruby-debug (0.10.3)
columnize (>= 0.3.1)
columnize (>= 0.1)
linecache19 (>= 0.5.11)
ruby-debug-base (~> 0.10.3.0)
ruby_core_source (>= 0.1.4)
ruby-debug-base (0.10.3)
ruby-debug19 (0.11.6)
linecache (>= 0.3)
columnize (>= 0.3.1)
linecache19 (>= 0.5.11)
ruby-debug-base19 (>= 0.11.19)
ruby_core_source (0.1.4)
archive-tar-minitar (>= 0.5.2)
rubyzip (0.9.4)
rubyzip (0.9.4)
selenium-webdriver (0.0.29)
selenium-webdriver (0.0.29)
childprocess (>= 0.0.7)
childprocess (>= 0.0.7)
...
@@ -294,7 +287,7 @@ DEPENDENCIES
...
@@ -294,7 +287,7 @@ DEPENDENCIES
roxml!
roxml!
rspec (>= 2.0.0)
rspec (>= 2.0.0)
rspec-rails (>= 2.0.0)
rspec-rails (>= 2.0.0)
ruby-debug
19
ruby-debug
sprinkle!
sprinkle!
thin
thin
webmock
webmock
...
...
This diff is collapsed.
Click to expand it.
cruise_config.rb
0 → 100644
+
5
−
0
View file @
560910b5
require
'fileutils'
Project
.
configure
do
|
project
|
project
.
build_command
=
'sudo gem update --system && ruby lib/cruise/build.rb'
end
This diff is collapsed.
Click to expand it.
lib/cruise/build.rb
0 → 100644
+
28
−
0
View file @
560910b5
#!/usr/bin/env ruby
require
'fileutils'
include
FileUtils
def
root_dir
@root_dir
||=
File
.
expand_path
(
File
.
dirname
(
__FILE__
)
+
'/../..'
)
end
def
rake
(
*
tasks
)
tasks
.
each
do
|
task
|
return
false
unless
system
(
"
#{
root_dir
}
/bin/rake"
,
task
,
'RAILS_ENV=test'
)
end
end
build_results
=
{}
cd
root_dir
do
build_results
[
:bundle
]
=
system
'bundle install'
# bundling here, rather than in a task (not in Rails context)
build_results
[
:spec
]
=
rake
'cruise'
end
failures
=
build_results
.
select
{
|
key
,
value
|
value
==
false
}
if
failures
.
empty?
exit
(
0
)
else
exit
(
-
1
)
end
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment