public
Last active

Janky on Heroku

  • Download Gist
Gemfile
Ruby
1 2 3 4
source "http://rubygems.org"
gem "janky", "~>0.9"
gem "pg"
gem "thin"
Procfile
1
web: bundle exec thin start -p $PORT
README.md
Markdown

Janky on Heroku

This is an Heroku app for Janky, a continuous integration server.

Rakefile
Ruby
1 2
require File.expand_path("../config/environment", __FILE__)
require "janky/tasks"
config.ru
Ruby
1 2
require File.expand_path("../config/environment", __FILE__)
run Janky.app
config/default.xml.erb
HTML+ERB
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68
<?xml version='1.0' encoding='UTF-8'?>
<project>
<actions/>
<name><%= name %></name>
<logRotator>
<daysToKeep>-1</daysToKeep>
<numToKeep>-1</numToKeep>
<artifactDaysToKeep>-1</artifactDaysToKeep>
<artifactNumToKeep>-1</artifactNumToKeep>
</logRotator>
<keepDependencies>false</keepDependencies>
<properties>
<hudson.model.ParametersDefinitionProperty>
<parameterDefinitions>
<hudson.model.StringParameterDefinition>
<name>JANKY_SHA1</name>
<description></description>
<defaultValue></defaultValue>
</hudson.model.StringParameterDefinition>
<hudson.model.StringParameterDefinition>
<name>JANKY_ID</name>
<description></description>
<defaultValue></defaultValue>
</hudson.model.StringParameterDefinition>
<hudson.model.StringParameterDefinition>
<name>JANKY_BRANCH</name>
<description></description>
<defaultValue></defaultValue>
</hudson.model.StringParameterDefinition>
</parameterDefinitions>
</hudson.model.ParametersDefinitionProperty>
<com.tikal.hudson.plugins.notification.HudsonNotificationProperty>
<endpoints>
<com.tikal.hudson.plugins.notification.Endpoint>
<protocol>HTTP</protocol>
<url><%= callback_url %></url>
</com.tikal.hudson.plugins.notification.Endpoint>
</endpoints>
</com.tikal.hudson.plugins.notification.HudsonNotificationProperty>
</properties>
<scm class="hudson.scm.NullSCM"/>
<assignedNode>master</assignedNode>
<canRoam>false</canRoam>
<disabled>false</disabled>
<blockBuildWhenDownstreamBuilding>false</blockBuildWhenDownstreamBuilding>
<blockBuildWhenUpstreamBuilding>false</blockBuildWhenUpstreamBuilding>
<triggers class="vector"/>
<concurrentBuild>false</concurrentBuild>
<builders>
<hudson.tasks.Shell>
<command>
if [ ! -d &quot;./.git&quot; ]; then
git init
git remote add origin <%= repo %>
fi
git fetch -q origin
git reset -q --hard $JANKY_SHA1
if [ -f script/cibuild ]; then
script/cibuild
else
bundle install --path vendor/gems --binstubs
bundle exec rake
fi</command>
</hudson.tasks.Shell>
</builders>
<publishers/>
<buildWrappers/>
</project>
config/environment.rb
Ruby
1 2
require "janky"
Janky.setup(ENV)

Please sign in to comment on this gist.

Something went wrong with that request. Please try again.