Skip to content
This repository has been archived by the owner on Jul 4, 2023. It is now read-only.

Commit

Permalink
Merge branch 'master' of https://github.com/mxcl/homebrew
Browse files Browse the repository at this point in the history
  • Loading branch information
erikg committed Apr 24, 2012
2 parents 730c66a + d06521a commit 5095d2b
Show file tree
Hide file tree
Showing 58 changed files with 889 additions and 155 deletions.
24 changes: 24 additions & 0 deletions Library/Contributions/cmds/brew-test-bot.commit.html.erb
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
<!DOCTYPE html>
<html>
<head>
<title>BrewBot: <%= @test.name %></title>
<title>BrewBot</title>
<style>
<%= css %>
</style>
</head>
<body>
<div>
<h1><a href="../index.html">BrewBot</a></h1>
<h2><%= @test.name %> <%= DateTime.now.strftime "%T %D" %></h2>
<table>
<% for step in @test.steps %>
<tr>
<td><span class="prompt">$</span> <%= step.command %></td>
<td class='status <%= step.status %>'><a href='<%= step.log_file_path false %> '><%= step.status_upcase %></a></td>
</tr>
<% end %>
</table>
</div>
</body>
</html>
75 changes: 75 additions & 0 deletions Library/Contributions/cmds/brew-test-bot.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,75 @@
body {
background: #27221a;
color: #f6e6cc;
font-family: Helvetica, Arial, sans-serif;
font-size: 1.5em;
}

h1, h2 {
text-align: center;
font-weight: bold;
}

h1 {
font-size: 3em;
padding-top: 0.5em;
padding-bottom: 0;
margin-bottom: 0;
text-shadow: 1px 1px 10px rgba(0,0,0,0.25);
color: #D7AF72;
letter-spacing: -3px;
}

h2 {
font-size: 0.8em;
margin-top: 0;
padding-top: 0;
padding-bottom: 1em;
color: #A1804C;
}

h1 a:link, h1 a:visited, h2 a:link, h2 a:visited {
text-decoration: none;
}

table {
background-color: rgba(0, 0, 0, 0.30);
color: white;
border-radius: 0.4em;
padding-top: 1em;
padding-bottom: 1em;
font-size: inherit;
font-family: monospace;
list-style-type: none;
margin-left: auto;
margin-right: auto;
}

td {
padding-left: 1em;
padding-right: 1em;
}

.prompt {
color: #E3D796;
}

.status {
text-align: right;
}

.running a:link, .running a:visited {
color: orange;
}

.passed a:link, .passed a:visited {
color: green;
}

.failed a:link, .failed a:visited {
color: red;
}

a:active, a:visited {
color: inherit;
}
23 changes: 23 additions & 0 deletions Library/Contributions/cmds/brew-test-bot.index.html.erb
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
<!DOCTYPE html>
<html>
<head>
<title>BrewBot</title>
<style>
<%= css %>
</style>
</head>
<body>
<div>
<h1><a href="index.html">BrewBot</h1>
<table>
<% dirs.each_with_index do |dir,index| %>
<tr>
<td><%= dir %></td>
<td><%= dates[index] %></td>
<td class='status <%= statuses[index] %>'><a href='<%= dir %>/index.html'><%= statuses[index].upcase %></a></td>
</tr>
<% end %>
</table>
</div>
</body>
</html>
Loading

0 comments on commit 5095d2b

Please sign in to comment.