-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
depend on multiple git repos for each build
- Loading branch information
pivotal
committed
Sep 23, 2010
1 parent
2cfd394
commit 580ea2e
Showing
5 changed files
with
66 additions
and
29 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,7 @@ | ||
DROP TABLE IF EXISTS builds; | ||
DROP TABLE IF EXISTS runs; | ||
DROP TABLE IF EXISTS git_repos; | ||
|
||
CREATE TABLE "builds" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "github_user" varchar(500), "github_repository" varchar(500), "git_branch" varchar(100), "run_script" varchar(5000), "created_at" datetime, "updated_at" datetime); | ||
CREATE TABLE "runs" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "build_id" INTEGER, "git_hash" varchar(40), "success" boolean, "in_progress" boolean, "output" varchar(50000), "created_at" datetime, "updated_at" datetime); | ||
CREATE TABLE "builds" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(500), "run_script" varchar(5000), "created_at" datetime, "updated_at" datetime); | ||
CREATE TABLE "runs" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "build_id" INTEGER, "git_hash" varchar(40), "success" boolean, "in_progress" boolean, "output" varchar(50000), "created_at" datetime, "updated_at" datetime); | ||
CREATE TABLE "git_repos" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "build_id" INTEGER, "github_user" varchar(500), "github_repository" varchar(500), "git_branch" varchar(100), "created_at" datetime, "updated_at" datetime); |
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
#!/usr/bin/env ruby | ||
require 'environment' | ||
|
||
Build.delete_all | ||
|
||
build = Build.new(:name => "All Recipes") | ||
build.git_repos << GitRepo.new(:github_user => "pivotalexperimental", :github_repository => "wschef", :git_branch => "master") | ||
build.run_script = "/Volumes/Persistent/build_all_recipes.command;" | ||
build.save! | ||
|
||
build = Build.new(:name => "Chef CI") | ||
build.git_repos << GitRepo.new(:github_user => "pivotalexperimental", :github_repository => "wschef", :git_branch => "master") | ||
build.git_repos << GitRepo.new(:github_user => "pivotalexperimental", :github_repository => "ci_cookbook", :git_branch => "master") | ||
build.run_script = "/Volumes/Persistent/build_ci_cookbook.command;" | ||
build.save! |
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