mirror of https://github.com/rails/rails
Update CI configuration to reflect latest gems.
This commit is contained in:
parent
8736dd3241
commit
19818eb0ea
|
@ -23,6 +23,7 @@ cd "#{root_dir}/activesupport" do
|
||||||
build_results[:activesupport] = system 'rake'
|
build_results[:activesupport] = system 'rake'
|
||||||
end
|
end
|
||||||
|
|
||||||
|
rm_f "#{root_dir}/activerecord/debug.log"
|
||||||
cd "#{root_dir}/activerecord" do
|
cd "#{root_dir}/activerecord" do
|
||||||
puts
|
puts
|
||||||
puts "[CruiseControl] Building ActiveRecord with MySQL"
|
puts "[CruiseControl] Building ActiveRecord with MySQL"
|
||||||
|
@ -37,13 +38,12 @@ cd "#{root_dir}/activerecord" do
|
||||||
build_results[:activerecord_postgresql8] = system 'rake test_postgresql'
|
build_results[:activerecord_postgresql8] = system 'rake test_postgresql'
|
||||||
end
|
end
|
||||||
|
|
||||||
# Sqlite2 is disabled until tests are fixed
|
cd "#{root_dir}/activerecord" do
|
||||||
# cd "#{root_dir}/activerecord" do
|
puts
|
||||||
# puts
|
puts "[CruiseControl] Building ActiveRecord with SQLite 2"
|
||||||
# puts "[CruiseControl] Building ActiveRecord with SQLite 2"
|
puts
|
||||||
# puts
|
build_results[:activerecord_sqlite] = system 'rake test_sqlite'
|
||||||
# build_results[:activerecord_sqlite] = system 'rake test_sqlite'
|
end
|
||||||
# end
|
|
||||||
|
|
||||||
cd "#{root_dir}/activerecord" do
|
cd "#{root_dir}/activerecord" do
|
||||||
puts
|
puts
|
||||||
|
@ -59,6 +59,7 @@ cd "#{root_dir}/activemodel" do
|
||||||
build_results[:activemodel] = system 'rake'
|
build_results[:activemodel] = system 'rake'
|
||||||
end
|
end
|
||||||
|
|
||||||
|
rm_f "#{root_dir}/activeresource/debug.log"
|
||||||
cd "#{root_dir}/activeresource" do
|
cd "#{root_dir}/activeresource" do
|
||||||
puts
|
puts
|
||||||
puts "[CruiseControl] Building ActiveResource"
|
puts "[CruiseControl] Building ActiveResource"
|
||||||
|
|
|
@ -54,10 +54,14 @@ ci ALL=NOPASSWD: /usr/local/bin/geminstaller, /usr/local/bin/ruby, /usr/loc
|
||||||
* Install/setup nginx:
|
* Install/setup nginx:
|
||||||
$ sudo aptitude install nginx
|
$ sudo aptitude install nginx
|
||||||
$ sudo vi /etc/nginx/sites-available/default
|
$ sudo vi /etc/nginx/sites-available/default
|
||||||
|
# Change server_name entry to match server name
|
||||||
|
|
||||||
# comment two lines and add one to proxy to ccrb:
|
# comment two lines and add one to proxy to ccrb:
|
||||||
# root /var/www/nginx-default;
|
# root /var/www/nginx-default;
|
||||||
# index index.html index.htm;
|
# index index.html index.htm;
|
||||||
proxy_pass http://127.0.0.1:3333;
|
proxy_pass http://127.0.0.1:3333;
|
||||||
|
|
||||||
|
# also comment default locations for /doc and /images
|
||||||
$ sudo /etc/init.d/nginx start
|
$ sudo /etc/init.d/nginx start
|
||||||
|
|
||||||
* Add project to cruise (It will still fail until everything is set up):
|
* Add project to cruise (It will still fail until everything is set up):
|
||||||
|
@ -101,6 +105,13 @@ $ sudo aptitude install sqlite sqlite3 libsqlite-dev libsqlite3-dev
|
||||||
$ sudo aptitude install postgresql postgresql-server-dev-8.3
|
$ sudo aptitude install postgresql postgresql-server-dev-8.3
|
||||||
$ sudo su - postgres -c 'createuser -s ci'
|
$ sudo su - postgres -c 'createuser -s ci'
|
||||||
|
|
||||||
|
* Install fcgi libraries
|
||||||
|
$ sudo apt-get install libfcgi-dev
|
||||||
|
|
||||||
|
* Install memcached and start for first time (should start on reboot automatically)
|
||||||
|
$ sudo aptitude install memcached
|
||||||
|
$ sudo /etc/init.d/memcached start
|
||||||
|
|
||||||
* Install and run GemInstaller to get all dependency gems
|
* Install and run GemInstaller to get all dependency gems
|
||||||
$ sudo gem install geminstaller
|
$ sudo gem install geminstaller
|
||||||
$ cd ~/.cruise/projects/rails/work
|
$ cd ~/.cruise/projects/rails/work
|
||||||
|
|
|
@ -1,5 +1,6 @@
|
||||||
Project.configure do |project|
|
Project.configure do |project|
|
||||||
project.build_command = 'ruby ci/ci_build.rb'
|
project.build_command = 'ruby ci/ci_build.rb'
|
||||||
project.email_notifier.emails = ['thewoolleyman@gmail.com','michael@koziarski.com', 'david@loudthinking.com', 'jeremy@bitsweat.net', 'josh@joshpeek.com', 'pratiknaik@gmail.com']
|
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'
|
project.email_notifier.from = 'thewoolleyman+railsci@gmail.com'
|
||||||
end
|
end
|
||||||
|
|
|
@ -2,13 +2,19 @@
|
||||||
gems:
|
gems:
|
||||||
- name: geminstaller
|
- name: geminstaller
|
||||||
version: >= 0.4.3
|
version: >= 0.4.3
|
||||||
|
- name: fcgi
|
||||||
|
version: >= 0.8.7
|
||||||
|
- name: memcache-client
|
||||||
|
version: >= 1.5.0
|
||||||
- name: mocha
|
- name: mocha
|
||||||
version: >= 0.9.0
|
version: >= 0.9.4
|
||||||
- name: mysql
|
- name: mysql
|
||||||
#version: >= 2.7
|
#version: >= 2.7
|
||||||
version: = 2.7
|
version: = 2.7
|
||||||
- name: postgres
|
- name: postgres
|
||||||
version: >= 0.7.9.2008.01.28
|
version: >= 0.7.9.2008.01.28
|
||||||
|
- name: rack
|
||||||
|
version: '~> 0.9.0'
|
||||||
- name: rake
|
- name: rake
|
||||||
version: >= 0.8.1
|
version: >= 0.8.1
|
||||||
- name: sqlite-ruby
|
- name: sqlite-ruby
|
||||||
|
|
Loading…
Reference in New Issue