This is an Heroku app for Janky, a continuous integration server.
-
-
Save cloudbring/1502696 to your computer and use it in GitHub Desktop.
Janky on Heroku
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
# This is an RVM Project .rvmrc file, used to automatically load the ruby | |
# development environment upon cd'ing into the directory | |
# First we specify our desired <ruby>[@<gemset>], the @gemset name is optional. | |
environment_id="ruby-1.9.2-p290@jankd" | |
# | |
# Uncomment following line if you want options to be set only for given project. | |
# | |
# PROJECT_JRUBY_OPTS=( --1.9 ) | |
# | |
# First we attempt to load the desired environment directly from the environment | |
# file. This is very fast and efficient compared to running through the entire | |
# CLI and selector. If you want feedback on which environment was used then | |
# insert the word 'use' after --create as this triggers verbose mode. | |
# | |
if [[ -d "${rvm_path:-$HOME/.rvm}/environments" \ | |
&& -s "${rvm_path:-$HOME/.rvm}/environments/$environment_id" ]] | |
then | |
\. "${rvm_path:-$HOME/.rvm}/environments/$environment_id" | |
if [[ -s "${rvm_path:-$HOME/.rvm}/hooks/after_use" ]] | |
then | |
. "${rvm_path:-$HOME/.rvm}/hooks/after_use" | |
fi | |
else | |
# If the environment file has not yet been created, use the RVM CLI to select. | |
if ! rvm --create "$environment_id" | |
then | |
echo "Failed to create RVM environment '${environment_id}'." | |
return 1 | |
fi | |
fi | |
# | |
# If you use an RVM gemset file to install a list of gems (*.gems), you can have | |
# it be automatically loaded. Uncomment the following and adjust the filename if | |
# necessary. | |
# | |
# filename=".gems" | |
# if [[ -s "$filename" ]] | |
# then | |
# rvm gemset import "$filename" | grep -v already | grep -v listed | grep -v complete | sed '/^$/d' | |
# fi | |
# If you use bundler, this might be useful to you: | |
# if command -v bundle && [[ -s Gemfile ]] | |
# then | |
# bundle install | |
# fi | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require "janky" | |
Janky.setup(ENV) | |
run Janky.app |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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> | |
</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 "./.git" ]; 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> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
source "http://rubygems.org" | |
gem "janky", "=0.9.0" | |
gem "pg" | |
gem "thin" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
GEM | |
remote: http://rubygems.org/ | |
specs: | |
activemodel (3.1.3) | |
activesupport (= 3.1.3) | |
builder (~> 3.0.0) | |
i18n (~> 0.6) | |
activerecord (3.1.3) | |
activemodel (= 3.1.3) | |
activesupport (= 3.1.3) | |
arel (~> 2.2.1) | |
tzinfo (~> 0.3.29) | |
activesupport (3.1.3) | |
multi_json (~> 1.0) | |
addressable (2.2.6) | |
arel (2.2.1) | |
broach (0.2.1) | |
json (~> 1.4) | |
nap (~> 0.3) | |
builder (3.0.0) | |
daemons (1.1.5) | |
eventmachine (0.12.10) | |
faraday (0.6.1) | |
addressable (~> 2.2.4) | |
multipart-post (~> 1.1.0) | |
rack (>= 1.1.0, < 2) | |
i18n (0.6.0) | |
janky (0.9.0) | |
activerecord (~> 3.1.0) | |
broach (~> 0.2) | |
mustache (~> 0.11) | |
rake (~> 0.9.2) | |
replicate (~> 1.4) | |
sinatra (~> 1.3) | |
sinatra_auth_github (~> 0.1.5) | |
yajl-ruby (~> 0.8) | |
json (1.6.3) | |
mime-types (1.17.2) | |
multi_json (1.0.4) | |
multipart-post (1.1.4) | |
mustache (0.99.4) | |
nap (0.4) | |
oauth2 (0.4.1) | |
faraday (~> 0.6.1) | |
multi_json (>= 0.0.5) | |
pg (0.12.0) | |
rake-compiler (~> 0.7) | |
rack (1.3.5) | |
rack-protection (1.1.4) | |
rack | |
rake (0.9.2.2) | |
rake-compiler (0.7.9) | |
rake | |
replicate (1.4) | |
rest-client (1.6.7) | |
mime-types (>= 1.16) | |
sinatra (1.3.1) | |
rack (~> 1.3, >= 1.3.4) | |
rack-protection (~> 1.1, >= 1.1.2) | |
tilt (~> 1.3, >= 1.3.3) | |
sinatra_auth_github (0.1.5) | |
rest-client (~> 1.6.1) | |
sinatra (~> 1.0) | |
warden-github (~> 0.1.1) | |
thin (1.3.1) | |
daemons (>= 1.0.9) | |
eventmachine (>= 0.12.6) | |
rack (>= 1.0.0) | |
tilt (1.3.3) | |
tzinfo (0.3.31) | |
warden (1.0.6) | |
rack (>= 1.0) | |
warden-github (0.1.2) | |
json (~> 1.5) | |
oauth2 (~> 0.4.1) | |
warden (~> 1.0.4) | |
yajl-ruby (0.8.3) | |
PLATFORMS | |
ruby | |
DEPENDENCIES | |
janky (= 0.9.0) | |
pg | |
thin |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
web: bundle exec thin start -p $PORT |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require "janky" | |
Janky.setup(ENV) | |
require "janky/tasks" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment