Permalink
Browse files

Added build status on sidebar.

Using DB instead of ADAPTER when running tests.
  • Loading branch information...
1 parent 90bb175 commit de1274866737562397672389c3e008292e3b2133 @assaf assaf committed Aug 1, 2011
Showing with 7 additions and 5 deletions.
  1. +1 −1 Gemfile.lock
  2. +2 −2 Rakefile
  3. +1 −0 doc/_layouts/page.html
  4. +1 −0 doc/css/page.css
  5. +2 −2 test/test_helper.rb
View
@@ -1,7 +1,7 @@
PATH
remote: .
specs:
- vanity (1.6.0)
+ vanity (1.6.1)
redis (~> 2.0)
redis-namespace (~> 1.0.0)
View
@@ -70,14 +70,14 @@ task "test:setup" do
end
# These are all the adapters we're going to test with.
-ADAPTERS = %w{redis mongodb}
+ADAPTERS = %w{redis mongodb mysql}
desc "Test using different back-ends"
task "test:adapters", :adapter do |t, args|
adapters = args.adapter ? [args.adapter] : ADAPTERS
adapters.each do |adapter|
puts "** Testing #{adapter} adapter"
- sh "rake test ADAPTER=#{adapter} #{'--trace' if Rake.application.options.trace}"
+ sh "rake test DB=#{adapter} #{'--trace' if Rake.application.options.trace}"
end
end
View
@@ -32,6 +32,7 @@
<li>Download: <a href="vanity-api.zip">API</a>/<a href="vanity.pdf">PDF</a></li>
</ul>
<ul id="stats">
+ <li><a href="http://travis-ci.org/assaf/vanity"><img src="http://travis-ci.org/assaf/vanity.png"></a></li>
<li><a href="http://github.com/assaf/vanity/graphs/traffic">Traffic</a></li>
<li><a href="http://wiki.github.com/assaf/vanity/whos-using-vanity">Who's using it?</a></li>
</ul>
View
@@ -52,6 +52,7 @@ h4 { font-size: 1.0em; margin-top: 1.5em }
#header, #content, #footer { width: 40em; margin-left: 210px }
#sidebar { float: left; width: 140px; margin: 20px }
#sidebar ul { list-style: none; text-align: right; margin: 0 0 3em 0; padding: 0 }
+#sidebar ul a img { border: none; margin; 0; padding: 0 }
#sidebar ul#stats { color: #666 }
table#issues .votes { color: #ccc; float: right }
#content { padding: 1.35em 0 }
View
@@ -39,13 +39,13 @@ def nuke_playground
# Call this if you need a new playground, e.g. to re-define the same experiment,
# or reload an experiment (saved by the previous playground).
def new_playground
- adapter = ENV["ADAPTER"] || "redis"
+ adapter = ENV["DB"] || "redis"
# We go destructive on the database at the end of each run, so make sure we
# don't use databases you care about. For Redis, we pick database 15
# (default is 0).
spec = {
"redis"=>"redis://localhost/15",
- "mongodb"=>"mongodb://localhost/vanity-test",
+ "mongodb"=>"mongodb://localhost/vanity",
"mock"=>"mock:/"
}[adapter]
raise "No support yet for #{adapter}" unless spec

0 comments on commit de12748

Please sign in to comment.