Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Newer
Older
100644 68 lines (56 sloc) 1.988 kb
827a0fe @fxn use sdoc to generate the API
fxn authored
1 require 'sdoc'
dff0dfb @fxn adds a publish_docs task to force stable docs generation and publishi…
fxn authored
2 require 'net/http'
8922c5d @jeremy Add toplevel Rakefile to run tests, generate docs, etc en masse
jeremy authored
3
4ff8c59 @carllerche Update the main Rakefile to use the new release tasks
carllerche authored
4 $:.unshift File.expand_path('..', __FILE__)
5 require "tasks/release"
7a5aa72 @fxn encapsulates API generation in Rails::API::Task
fxn authored
6 require 'railties/lib/rails/api/task'
4ff8c59 @carllerche Update the main Rakefile to use the new release tasks
carllerche authored
7
8 desc "Build gem files for all projects"
9 task :build => "all:build"
10
67f6688 @arunagw Saying gemcutter => rubygems [ci skip]
arunagw authored
11 desc "Release all gems to rubygems and create a tag"
c3dd123 @carllerche Small cleanup of the release task
carllerche authored
12 task :release => "all:release"
4ff8c59 @carllerche Update the main Rakefile to use the new release tasks
carllerche authored
13
0c23277 @seuros Remove activejob integration tests
seuros authored
14 PROJECTS = %w(activesupport activemodel actionpack actionview actionmailer activerecord railties activejob)
8922c5d @jeremy Add toplevel Rakefile to run tests, generate docs, etc en masse
jeremy authored
15
16 desc 'Run all tests by default'
bbb3e5a @jeremy Unify test:isolated across components and run by default at toplevel
jeremy authored
17 task :default => %w(test test:isolated)
8922c5d @jeremy Add toplevel Rakefile to run tests, generate docs, etc en masse
jeremy authored
18
728ba20 @fxn include the root README.rdoc as main page
fxn authored
19 %w(test test:isolated package gem).each do |task_name|
8922c5d @jeremy Add toplevel Rakefile to run tests, generate docs, etc en masse
jeremy authored
20 desc "Run #{task_name} task for all projects"
21 task task_name do
49afe81 @kerryb Report errors in 'all project' rake tasks [#2224 state:resolved]
kerryb authored
22 errors = []
8922c5d @jeremy Add toplevel Rakefile to run tests, generate docs, etc en masse
jeremy authored
23 PROJECTS.each do |project|
11db694 @brynary Remove cruft in the gem packaging and release code
brynary authored
24 system(%(cd #{project} && #{$0} #{task_name})) || errors << project
8922c5d @jeremy Add toplevel Rakefile to run tests, generate docs, etc en masse
jeremy authored
25 end
49afe81 @kerryb Report errors in 'all project' rake tasks [#2224 state:resolved]
kerryb authored
26 fail("Errors in #{errors.join(', ')}") unless errors.empty?
8922c5d @jeremy Add toplevel Rakefile to run tests, generate docs, etc en masse
jeremy authored
27 end
28 end
4c720b7 @jeremy Add toplevel rdoc and pdoc tasks
jeremy authored
29
a76af23 @jeremy rake smoke: toplevel task to quickly smoke-test all projects
jeremy authored
30 desc "Smoke-test all projects"
31 task :smoke do
32 (PROJECTS - %w(activerecord)).each do |project|
11db694 @brynary Remove cruft in the gem packaging and release code
brynary authored
33 system %(cd #{project} && #{$0} test:isolated)
a76af23 @jeremy rake smoke: toplevel task to quickly smoke-test all projects
jeremy authored
34 end
11db694 @brynary Remove cruft in the gem packaging and release code
brynary authored
35 system %(cd activerecord && #{$0} sqlite3:isolated_test)
a76af23 @jeremy rake smoke: toplevel task to quickly smoke-test all projects
jeremy authored
36 end
8ff310a Break up rails and railties:
Carlhuda authored
37
87a011d @josevalim Make install appear on rake -T.
josevalim authored
38 desc "Install gems for all projects."
2fd0c7a @rafaelfranca Fix the install task
rafaelfranca authored
39 task :install => "all:install"
f3ed0de @wycats Create an install task that successfully installs all Rails gems
wycats authored
40
4c720b7 @jeremy Add toplevel rdoc and pdoc tasks
jeremy authored
41 desc "Generate documentation for the Rails framework"
374fd66 @fxn fixes Rails version for the stable API [ci skip]
fxn authored
42 if ENV['EDGE']
43 Rails::API::EdgeTask.new('rdoc')
44 else
45 Rails::API::StableTask.new('rdoc')
46 end
4c720b7 @jeremy Add toplevel rdoc and pdoc tasks
jeremy authored
47
470108b @rafaelfranca Fix task comment to match which file should be changed
rafaelfranca authored
48 desc 'Bump all versions to match RAILS_VERSION'
ce0df82 @rafaelfranca Fix the update_versions release task
rafaelfranca authored
49 task :update_versions => "all:update_versions"
dff0dfb @fxn adds a publish_docs task to force stable docs generation and publishi…
fxn authored
50
730dd1a @prathamesh-sonpatki Github -> GitHub [ci skip]
prathamesh-sonpatki authored
51 # We have a webhook configured in GitHub that gets invoked after pushes.
dff0dfb @fxn adds a publish_docs task to force stable docs generation and publishi…
fxn authored
52 # This hook triggers the following tasks:
53 #
54 # * updates the local checkout
55 # * updates Rails Contributors
56 # * generates and publishes edge docs
57 # * if there's a new stable tag, generates and publishes stable docs
58 #
59 # Everything is automated and you do NOT need to run this task normally.
60 desc 'Publishes docs, run this AFTER a new stable tag has been pushed'
61 task :publish_docs do
c2aadf8 @fxn updates the host and port of publish_docs, and changes the release in…
fxn authored
62 Net::HTTP.new('api.rubyonrails.org', 8080).start do |http|
dff0dfb @fxn adds a publish_docs task to force stable docs generation and publishi…
fxn authored
63 request = Net::HTTP::Post.new('/rails-master-hook')
64 response = http.request(request)
65 puts response.body
66 end
67 end
Something went wrong with that request. Please try again.