This file contains hidden or 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/ruby | |
require 'rubygems' | |
require 'json' | |
require 'net/http' | |
require 'uri' | |
require 'date' | |
$ciBaseUrl = 'http://ci.motechproject.org' #URL of your jenkins CI | |
$jobs = ['Ananya-Kilkari','Ananya-Reports','Ananya-Kilkari-Smoke'] # add all the jobs to be monitored in this list |
This file contains hidden or 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
public class BlogPostIntegrationTest extends SpringIntegrationTest { | |
@Autowired | |
private BlogPosts blogPosts; | |
@Test | |
public void shouldPersistWithChildren() { | |
BlogPost blogPost = new BlogPost(); | |
blogPost.setName("the blog"); | |
blogPosts.add(blogPost); | |
This file contains hidden or 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
@TypeDiscriminator("doc.documentType == 'BlogPost'") | |
public class BlogPost extends CouchEntity { | |
private String name; | |
@DocumentReferences(backReference="blogPostId", fetch = FetchType.EAGER, cascade = CascadeType.ALL) | |
private Set<Comment> comments = new HashSet<Comment>(); | |
/* getters and setters */ | |
public void addComment(Comment comment) { | |
comment.setBlogPostId(this.getId()); |
This file contains hidden or 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
@TypeDiscriminator("doc.documentType == 'Comment'") | |
public class Comment extends CouchEntity { | |
private String blogPostId; | |
private String notes; | |
/* getters and setters */ | |
} |
This file contains hidden or 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
@TypeDiscriminator("doc.documentType == 'BlogPost'") | |
public class BlogPost extends CouchEntity { | |
private String name; | |
@DocumentReferences(backReference="blogPostId", fetch = FetchType.EAGER, cascade = CascadeType.ALL) | |
private Set<Comment> comments = new HashSet<Comment>(); | |
/* getters and setters */ | |
} |
This file contains hidden or 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
git diff --no-prefix | sed -e "s/^diff --git [^[:space:]]*/Index:/" -e "s/^index.*/===================================================================/" --ignore-space-at-eol > changes.patch |
This file contains hidden or 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 | |
# Formatting constants | |
export BOLD=`tput bold` | |
export UNDERLINE_ON=`tput smul` | |
export UNDERLINE_OFF=`tput rmul` | |
export TEXT_BLACK=`tput setaf 0` | |
export TEXT_RED=`tput setaf 1` | |
export TEXT_GREEN=`tput setaf 2` | |
export TEXT_YELLOW=`tput setaf 3` |
NewerOlder