aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--bin/make.conf2
-rwxr-xr-xbin/packages.py8
-rwxr-xr-xbin/provision.sh2
-rw-r--r--web/db/migrations/022_add_r23_target.rb6
-rw-r--r--web/lib/ci.rb8
-rw-r--r--web/lib/packages.rb8
-rw-r--r--web/public/js/jquery.flot.plot.packages.per.target.js16
-rw-r--r--web/routes/visualizations.rb8
-rw-r--r--web/views/ruby_targets.erb8
-rw-r--r--web/views/visualizations.erb4
10 files changed, 37 insertions, 33 deletions
diff --git a/bin/make.conf b/bin/make.conf
index 65fe7aa..b5c1871 100644
--- a/bin/make.conf
+++ b/bin/make.conf
@@ -3,7 +3,7 @@ CXXFLAGS=""
CHOST="x86_64-pc-linux-gnu"
USE="mmx sse sse2 -perl -python"
-RUBY_TARGETS="ruby19 ruby20 ruby21 ruby22"
+RUBY_TARGETS="ruby20 ruby21 ruby22 ruby23"
GENTOO_MIRRORS="http://mirror.bytemark.co.uk/gentoo/"
EMERGE_DEFAULT_OPTS="--color=n --nospinner"
diff --git a/bin/packages.py b/bin/packages.py
index 2a3b5ae..3a036a3 100755
--- a/bin/packages.py
+++ b/bin/packages.py
@@ -44,10 +44,6 @@ def format_output(cpv, slot, iuse, keyword):
slot + ' ' + \
keyword, \
end=' ')
- if 'ruby_targets_ruby19' in iuse:
- print('ruby19', end=' ')
- else:
- print('nil', end=' ')
if 'ruby_targets_ruby20' in iuse:
print('ruby20', end=' ')
else:
@@ -60,6 +56,10 @@ def format_output(cpv, slot, iuse, keyword):
print('ruby22', end=' ')
else:
print('nil', end=' ')
+ if 'ruby_targets_ruby23' in iuse:
+ print('ruby23', end=' ')
+ else:
+ print('nil', end=' ')
print(get_deps(cpv), end=' ')
print()
diff --git a/bin/provision.sh b/bin/provision.sh
index ba69bc9..a8e54bd 100755
--- a/bin/provision.sh
+++ b/bin/provision.sh
@@ -14,7 +14,7 @@ emerge --sync
emerge --metadata
emerge --oneshot portage
-RUBIES=(dev-lang/ruby:1.9 dev-lang/ruby:2.0 dev-lang/ruby:2.1 dev-lang/ruby:2.2)
+RUBIES=(dev-lang/ruby:2.0 dev-lang/ruby:2.1 dev-lang/ruby:2.2 dev-lang/ruby:2.3)
set +e
emerge --pretend --quiet "${RUBIES[@]}"
if [[ $? == 1 ]]; then
diff --git a/web/db/migrations/022_add_r23_target.rb b/web/db/migrations/022_add_r23_target.rb
new file mode 100644
index 0000000..23474c4
--- /dev/null
+++ b/web/db/migrations/022_add_r23_target.rb
@@ -0,0 +1,6 @@
+Sequel.migration do
+ change do
+ drop_column :packages, :r19_target
+ add_column :packages, :r23_target, String
+ end
+end
diff --git a/web/lib/ci.rb b/web/lib/ci.rb
index 22fd6b0..0db0ff3 100644
--- a/web/lib/ci.rb
+++ b/web/lib/ci.rb
@@ -63,10 +63,7 @@ def generate_package_list(ci_type, num_of_packages)
end
end
elsif num_of_packages.is_a?(Integer)
- packages = []
- packages << Package.where(identifier: 'dev-ruby/color-1.7.1').first
- packages << Package.where(identifier: 'dev-ruby/crack-0.4.2-r1').first
- packages << Package.where(identifier: 'dev-ruby/atomic-1.1.99').first
+ packages = packages.sample(num_of_packages)
else
puts 'ERROR: Invalid value for NUM_OF_PACKAGES'
puts ci_type
@@ -76,7 +73,8 @@ def generate_package_list(ci_type, num_of_packages)
packages_with_targets = []
packages.uniq.each do |package|
- packages_with_targets << "#{package[:identifier]} #{package[:next_target]}"
+ package = Package.where(identifier: package).first
+ packages_with_targets << "#{package[:identifier]} #{package[:next_target]}"
end
packages_with_targets
diff --git a/web/lib/packages.rb b/web/lib/packages.rb
index 6e3f0b5..0f148de 100644
--- a/web/lib/packages.rb
+++ b/web/lib/packages.rb
@@ -10,9 +10,9 @@ def update_packages(ci_image)
ci_container.delete
packages_txt = packages_txt.lines.sort.uniq
- packages_txt.peach do |line|
+ packages_txt.each do |line|
next if line.empty?
- sha1, category, name, version, revision, slot, amd64_keyword, r19_target, r20_target, r21_target, r22_target = line.split(' ')
+ sha1, category, name, version, revision, slot, amd64_keyword, r20_target, r21_target, r22_target, r23_target = line.split(' ')
identifier = category + '/' + name + '-' + version + (revision == 'r0' ? '' : "-#{revision}")
@@ -20,9 +20,9 @@ def update_packages(ci_image)
gem_version = 'nil' if gem_version.nil?
next_target = 'nil'
- next_target = 'ruby20' if r19_target == 'ruby19' && r20_target == 'nil'
next_target = 'ruby21' if r20_target == 'ruby20' && r21_target == 'nil'
next_target = 'ruby22' if r21_target == 'ruby21' && r22_target == 'nil'
+ next_target = 'ruby23' if r22_target == 'ruby22' && r23_target == 'nil'
package = Package.find_or_create(
sha1: sha1,
@@ -33,10 +33,10 @@ def update_packages(ci_image)
slot: slot,
identifier: identifier,
amd64_keyword: amd64_keyword,
- r19_target: r19_target,
r20_target: r20_target,
r21_target: r21_target,
r22_target: r22_target,
+ r23_target: r23_target,
next_target: next_target,
gem_version: gem_version
)
diff --git a/web/public/js/jquery.flot.plot.packages.per.target.js b/web/public/js/jquery.flot.plot.packages.per.target.js
index bee9ff0..1916d92 100644
--- a/web/public/js/jquery.flot.plot.packages.per.target.js
+++ b/web/public/js/jquery.flot.plot.packages.per.target.js
@@ -1,13 +1,5 @@
$(function() {
var datasets = {
- "ruby_1.9_amd64": {
- label: "Ruby 1.9 amd64",
- data: [[1, $('td[id="ruby_1.9_amd64"]').text()]]
- },
- "ruby_1.9_~amd64": {
- label: "Ruby 1.9 ~amd64",
- data: [[1, $('td[id="ruby_1.9_~amd64"]').text()]]
- },
"ruby_2.0_amd64": {
label: "Ruby 2.0 amd64",
data: [[1, $('td[id="ruby_2.0_amd64"]').text()]]
@@ -31,6 +23,14 @@ $(function() {
"ruby_2.2_~amd64": {
label: "Ruby 2.2 ~amd64",
data: [[1, $('td[id="ruby_2.2_~amd64"]').text()]]
+ },
+ "ruby_2.3_amd64": {
+ label: "Ruby 2.3 amd64",
+ data: [[1, $('td[id="ruby_2.3_amd64"]').text()]]
+ },
+ "ruby_2.3_~amd64": {
+ label: "Ruby 2.3 ~amd64",
+ data: [[1, $('td[id="ruby_2.3_~amd64"]').text()]]
}
};
diff --git a/web/routes/visualizations.rb b/web/routes/visualizations.rb
index 1ec845b..a3518a0 100644
--- a/web/routes/visualizations.rb
+++ b/web/routes/visualizations.rb
@@ -5,14 +5,14 @@ class RubyTinderbox < Sinatra::Base
portage_timestamp = Package.first[:portage_timestamp]
# Ruby Targets
- ruby_1_9_amd64 = Package.where(r19_target: 'ruby19', amd64_keyword: 'amd64').count
- ruby_1_9__amd64 = Package.where(r19_target: 'ruby19', amd64_keyword: '~amd64').count
ruby_2_0_amd64 = Package.where(r20_target: 'ruby20', amd64_keyword: 'amd64').count
ruby_2_0__amd64 = Package.where(r20_target: 'ruby20', amd64_keyword: '~amd64').count
ruby_2_1_amd64 = Package.where(r21_target: 'ruby21', amd64_keyword: 'amd64').count
ruby_2_1__amd64 = Package.where(r21_target: 'ruby21', amd64_keyword: '~amd64').count
ruby_2_2_amd64 = Package.where(r22_target: 'ruby22', amd64_keyword: 'amd64').count
ruby_2_2__amd64 = Package.where(r22_target: 'ruby22', amd64_keyword: '~amd64').count
+ ruby_2_3_amd64 = Package.where(r23_target: 'ruby23', amd64_keyword: 'amd64').count
+ ruby_2_3__amd64 = Package.where(r23_target: 'ruby23', amd64_keyword: '~amd64').count
# Outdated Gems
uptodate = []
@@ -28,14 +28,14 @@ class RubyTinderbox < Sinatra::Base
erb :visualizations, locals: {
portage_timestamp: portage_timestamp,
update_timestamp: update_timestamp,
- ruby_1_9_amd64: ruby_1_9_amd64,
- ruby_1_9__amd64: ruby_1_9__amd64,
ruby_2_0_amd64: ruby_2_0_amd64,
ruby_2_0__amd64: ruby_2_0__amd64,
ruby_2_1_amd64: ruby_2_1_amd64,
ruby_2_1__amd64: ruby_2_1__amd64,
ruby_2_2_amd64: ruby_2_2_amd64,
ruby_2_2__amd64: ruby_2_2__amd64,
+ ruby_2_3_amd64: ruby_2_3_amd64,
+ ruby_2_3__amd64: ruby_2_3__amd64,
uptodate: uptodate.count,
outdated: outdated.count,
succeeded: succeeded,
diff --git a/web/views/ruby_targets.erb b/web/views/ruby_targets.erb
index e8c0db5..d70d1df 100644
--- a/web/views/ruby_targets.erb
+++ b/web/views/ruby_targets.erb
@@ -19,10 +19,10 @@
<thead>
<tr>
<th class="width-52">Package</th>
- <th class="width-12">Ruby 1.9</th>
<th class="width-12">Ruby 2.0</th>
<th class="width-12">Ruby 2.1</th>
<th class="width-12">Ruby 2.2</th>
+ <th class="width-12">Ruby 2.3</th>
</tr>
</thead>
<tbody class="searchable">
@@ -31,9 +31,6 @@
<td class="width-52">
<%=package[:identifier]%>
</td>
- <td class="width-12 <%=package[:r19_target] == "nil" ? "danger" : "success"%>">
- <%=package[:r19_target]%>
- </td>
<td class="width-12 <%=package[:r20_target] == "nil" ? "danger" : "success"%>">
<%=package[:r20_target]%>
</td>
@@ -43,6 +40,9 @@
<td class="width-12 <%=package[:r22_target] == "nil" ? "danger" : "success"%>">
<%=package[:r22_target]%>
</td>
+ <td class="width-12 <%=package[:r23_target] == "nil" ? "danger" : "success"%>">
+ <%=package[:r23_target]%>
+ </td>
<td style="display:none;">
+<%=package[:amd64_keyword]%>
</td>
diff --git a/web/views/visualizations.erb b/web/views/visualizations.erb
index 9b22e6e..6bce9b6 100644
--- a/web/views/visualizations.erb
+++ b/web/views/visualizations.erb
@@ -16,14 +16,14 @@
<h2>Number of Packages per Ruby Target</h2>
<table style="display:none;" class='table table-bordered table-condensed'>
<tr>
- <td id='ruby_1.9_amd64'><%=ruby_1_9_amd64%></td>
- <td id='ruby_1.9_~amd64'><%=ruby_1_9__amd64%></td>
<td id='ruby_2.0_amd64'><%=ruby_2_0_amd64%></td>
<td id='ruby_2.0_~amd64'><%=ruby_2_0__amd64%></td>
<td id='ruby_2.1_amd64'><%=ruby_2_1_amd64%></td>
<td id='ruby_2.1_~amd64'><%=ruby_2_1__amd64%></td>
<td id='ruby_2.2_amd64'><%=ruby_2_2_amd64%></td>
<td id='ruby_2.2_~amd64'><%=ruby_2_2__amd64%></td>
+ <td id='ruby_2.3_amd64'><%=ruby_2_3_amd64%></td>
+ <td id='ruby_2.3_~amd64'><%=ruby_2_3__amd64%></td>
</tr>
</table>
<div class='flot-container'>