[SCM] ci-tooling packaging branch, master, updated. 9ba78f25c2dd259e070ed323eb96c2edc9717475
Harald Sitter
apachelogger-guest at moszumanska.debian.org
Sun Jan 11 17:06:46 UTC 2015
Gitweb-URL: http://git.debian.org/?p=pkg-kde/ci-tooling.git;a=commitdiff;h=9ba78f2
The following commit has been merged in the master branch:
commit 9ba78f25c2dd259e070ed323eb96c2edc9717475
Author: Harald Sitter <sitter at kde.org>
Date: Sun Jan 11 18:06:44 2015 +0100
fixeroo Projects init
---
lib/projects.rb | 6 +++---
test/test-projects.rb | 4 ++++
2 files changed, 7 insertions(+), 3 deletions(-)
diff --git a/lib/projects.rb b/lib/projects.rb
index ee10ed4..d7fbe55 100644
--- a/lib/projects.rb
+++ b/lib/projects.rb
@@ -100,14 +100,14 @@ class Projects < Array
config['all_repos'].each do |component|
repos = %x[ssh git.debian.org ls /git/pkg-kde/#{component}].chop!.gsub!('.git', '').split(' ')
repos.each do |name|
- self << Project.new(name, component)
+ self << Project.new(name, component, type: type)
end
end
# Get selective component/repo combinations.
config['selective_repos'].each do |component, repos|
repos.each do |name|
- self << Project.new(name, component)
+ self << Project.new(name, component, type: type)
end
end
@@ -130,7 +130,7 @@ class Projects < Array
puts repos
repos.each do |repo|
- self << Project.new(repo, custom_ci['org'], custom_ci['git_host'])
+ self << Project.new(repo, custom_ci['org'], custom_ci['git_host'], type: type)
end
end
end
diff --git a/test/test-projects.rb b/test/test-projects.rb
index dfa7bdc..8084fd0 100644
--- a/test/test-projects.rb
+++ b/test/test-projects.rb
@@ -69,4 +69,8 @@ class ProjectTest < Test::Unit::TestCase
end
end
end
+
+ def test_array_init_unstable
+ Projects.new(type: "unstable", projects_file: "#{@datadir}/projects.json")
+ end
end
--
ci-tooling packaging
More information about the pkg-kde-commits
mailing list