From f413a703ba5bcf4b369932ae805615c4a34d34cb Mon Sep 17 00:00:00 2001 From: Chad Woolley Date: Tue, 11 Aug 2009 22:53:55 -0700 Subject: make mysql and postgresql rebuild databases on every CI build, to prevent breakages such as collation and character set changing Signed-off-by: Yehuda Katz --- ci/ci_build.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'ci') diff --git a/ci/ci_build.rb b/ci/ci_build.rb index 0b9bd3d278..7d81fa843a 100755 --- a/ci/ci_build.rb +++ b/ci/ci_build.rb @@ -28,14 +28,14 @@ cd "#{root_dir}/activerecord" do puts puts "[CruiseControl] Building ActiveRecord with MySQL" puts - build_results[:activerecord_mysql] = system 'rake test_mysql' + build_results[:activerecord_mysql] = system 'rake mysql:rebuild_databases && rake test_mysql' end cd "#{root_dir}/activerecord" do puts puts "[CruiseControl] Building ActiveRecord with PostgreSQL" puts - build_results[:activerecord_postgresql8] = system 'rake test_postgresql' + build_results[:activerecord_postgresql8] = system 'rake postgresql:rebuild_databases && rake test_postgresql' end cd "#{root_dir}/activerecord" do -- cgit v1.2.3 From 76335c27b6ddbd0fb17ead70dac4878c629834c5 Mon Sep 17 00:00:00 2001 From: Jeremy Kemper Date: Sat, 15 Aug 2009 19:04:16 -0700 Subject: Bump pg gem requirement to 0.8.0. Build psql db with UTF8 encoding. --- ci/geminstaller.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'ci') diff --git a/ci/geminstaller.yml b/ci/geminstaller.yml index 59bdcebc26..fad9e7d786 100644 --- a/ci/geminstaller.yml +++ b/ci/geminstaller.yml @@ -12,7 +12,7 @@ gems: #version: >= 2.7 version: = 2.7 - name: pg - version: >= 0.7.9.2008.10.13 + version: >= 0.8.0 - name: rack version: '~> 1.0.0' - name: rake -- cgit v1.2.3 From ef935240582ef6a7d47a9716e8269db817c91503 Mon Sep 17 00:00:00 2001 From: Mike Gunderloy Date: Tue, 18 Aug 2009 06:12:33 -0500 Subject: Remove sqlite2 build from CI recipe [#3066 state:resolved] Signed-off-by: Pratik Naik --- ci/ci_build.rb | 8 -------- 1 file changed, 8 deletions(-) (limited to 'ci') diff --git a/ci/ci_build.rb b/ci/ci_build.rb index 7d81fa843a..06e513f907 100755 --- a/ci/ci_build.rb +++ b/ci/ci_build.rb @@ -38,13 +38,6 @@ cd "#{root_dir}/activerecord" do build_results[:activerecord_postgresql8] = system 'rake postgresql:rebuild_databases && rake test_postgresql' end -cd "#{root_dir}/activerecord" do - puts - puts "[CruiseControl] Building ActiveRecord with SQLite 2" - puts - build_results[:activerecord_sqlite] = system 'rake test_sqlite' -end - cd "#{root_dir}/activerecord" do puts puts "[CruiseControl] Building ActiveRecord with SQLite 3" @@ -96,7 +89,6 @@ puts "[CruiseControl] #{`uname -a`}" puts "[CruiseControl] #{`ruby -v`}" puts "[CruiseControl] #{`mysql --version`}" puts "[CruiseControl] #{`pg_config --version`}" -puts "[CruiseControl] SQLite2: #{`sqlite -version`}" puts "[CruiseControl] SQLite3: #{`sqlite3 -version`}" `gem env`.each_line {|line| print "[CruiseControl] #{line}"} puts "[CruiseControl] Local gems:" -- cgit v1.2.3 From 22e946873cf459715ead0d3dcf29402e9ff99285 Mon Sep 17 00:00:00 2001 From: Chad Woolley Date: Sun, 16 Aug 2009 19:05:45 -0700 Subject: Send CI notifications to core list. * Only send emails on official box. * Update CI setup docs to correct hostname instructions. [#3063 state:committed] Signed-off-by: Jeremy Kemper --- ci/ci_setup_notes.txt | 4 ++-- ci/cruise_config.rb | 11 +++++++---- 2 files changed, 9 insertions(+), 6 deletions(-) (limited to 'ci') diff --git a/ci/ci_setup_notes.txt b/ci/ci_setup_notes.txt index 780277c939..7581a24672 100644 --- a/ci/ci_setup_notes.txt +++ b/ci/ci_setup_notes.txt @@ -17,9 +17,9 @@ root:*:14001:0:99999:7::: * Change Hostname: $ sudo vi /etc/hostname -change to 'ci' +change to correct hostname $ sudo vi /etc/hosts -replace old hostname with 'ci' +replace old hostname with the correct hostname # reboot to use new hostname (and test reboot) $ sudo shutdown -r now diff --git a/ci/cruise_config.rb b/ci/cruise_config.rb index 2247a1b6ea..439a93d69b 100644 --- a/ci/cruise_config.rb +++ b/ci/cruise_config.rb @@ -1,6 +1,9 @@ Project.configure do |project| - project.build_command = 'sudo update_rubygems && ruby ci/ci_build.rb' - project.email_notifier.emails = ['thewoolleyman@gmail.com'] -# project.email_notifier.emails = ['thewoolleyman@gmail.com','michael@koziarski.com', 'david@loudthinking.com', 'jeremy@bitsweat.net', 'josh@joshpeek.com', 'pratiknaik@gmail.com', 'wycats@gmail.com'] - project.email_notifier.from = 'thewoolleyman+railsci@gmail.com' + # Send email notifications about broken and fixed builds to core mailing list + if Socket.gethostname =~ /ci.rubyonrails.org/ + project.email_notifier.emails = ['rubyonrails-core@googlegroups.com'] + end + + project.build_command = 'sudo update_rubygems && ruby ci/ci_build.rb' + project.email_notifier.from = 'thewoolleyman+railsci@gmail.com' end -- cgit v1.2.3 From d8e7ff12a82f4cde563d6d8777e644811929bf50 Mon Sep 17 00:00:00 2001 From: Chad Woolley Date: Sat, 29 Aug 2009 23:43:53 -0700 Subject: CI config updates: do not send CI emails unless explicitly enabled, use 'gem update --system', and send emails from an address which can post to the core list [#3116 state:committed] Signed-off-by: Jeremy Kemper --- ci/cruise_config.rb | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'ci') diff --git a/ci/cruise_config.rb b/ci/cruise_config.rb index 439a93d69b..9c7fa98a70 100644 --- a/ci/cruise_config.rb +++ b/ci/cruise_config.rb @@ -1,9 +1,9 @@ Project.configure do |project| # Send email notifications about broken and fixed builds to core mailing list - if Socket.gethostname =~ /ci.rubyonrails.org/ + if Socket.gethostname =~ /ci.rubyonrails.org/ && ENV['ENABLE_RAILS_CI_EMAILS'] == 'true' project.email_notifier.emails = ['rubyonrails-core@googlegroups.com'] end - project.build_command = 'sudo update_rubygems && ruby ci/ci_build.rb' - project.email_notifier.from = 'thewoolleyman+railsci@gmail.com' + project.build_command = 'sudo gem update --system && ruby ci/ci_build.rb' + project.email_notifier.from = 'thewoolleyman@gmail.com' end -- cgit v1.2.3 From ffd2cf167040b60c26d97c01598560c87bd4b2d3 Mon Sep 17 00:00:00 2001 From: Joshua Peek Date: Mon, 31 Aug 2009 15:46:29 -0500 Subject: To make CI happy, use my edge rack-test gem (just for now) --- ci/geminstaller.yml | 2 ++ 1 file changed, 2 insertions(+) (limited to 'ci') diff --git a/ci/geminstaller.yml b/ci/geminstaller.yml index fad9e7d786..3a4079ddbb 100644 --- a/ci/geminstaller.yml +++ b/ci/geminstaller.yml @@ -15,6 +15,8 @@ gems: version: >= 0.8.0 - name: rack version: '~> 1.0.0' +- name: josh-rack-test + version: >= 0.4.1 - name: rake version: >= 0.8.1 - name: sqlite-ruby -- cgit v1.2.3